Hi I'm trying to create a random number generator with float values ranging from -1 to 1 i.e.. [-1,1]. The only problem is I can only find methods that do it from [0,1].
Can anyone help me with this? Here is what I have so far....
Random r = new Random();
for(int counter=1; counter<=10;counter++){
number = r.next.Float()
system.out.println(number + " ");
}