i have an angle say 60deg and want to generate random angle within interval say [-120,120]
where the interval centred around the 60deg which be now [-60,180]
i have this code
http://www.cs.princeton.edu/introcs/22library/StdRandom.java.html
but i am confused because it's say that the gaussian distribution is within [0,1]
how can i pass the range [-120,120]?
the 60 angle is the relative rotation of an object the generated random angle is a predication of it's next postion
when testing the code i have angles ,say 65 ,55 if i use this angle directly it performs stranges so i take the difference 65-60 ,55-60 is this idea is correct ?