Can anyone tell me how can i get rand numbers between [-1,1] using rand???
Printable View
Can anyone tell me how can i get rand numbers between [-1,1] using rand???
If you have a number between 0 and 1 (which assuming you got through the last question) can you think of some sort of way to turn 0 into -1, and 0.5 into 0, and 1 into 1? (You've got three points, see what kind of shape they make....)
>Can anyone tell me how can i get rand numbers between [-1,1] using rand???
Maybe get rand numbers between [0,2] and subtract 1??? :p
thx guys...i got it!