I am trying to make a random point on a coordinate plane, and I want the x and y to be two random floating point numbers between -2.0 and 2.0
Given that I have tried
x = (random.nextDouble() - 2);
y = (random.nextDouble() - 2);
The above will only return (x,y) in the negative quadrant of the coordinate plane.
How do I make it so that it will reach all four quadrants equally?