So basically I'm trying to get a piece of code to randomly choose between two values -40 and 40.
To do so, I was thinking of using good old mathematics like -
random_num = ((-1)^value)*40, where value = {1, 2}.
random_num, as the name suggest should be a random number.
Any help ?
I am using python, solution using libraries is acceptable.