Actionscript-3 random numbers between max and min...
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-04-18T12:31:09Z
Indexed on
2010/04/18
12:33 UTC
Read the original article
Hit count: 467
hi,
I'm generating a random number between min and max with this code:
return min + (max - min) * Math.random();
And it works. However, the random numbers are very little usually between "1 or 3" even if the max is 80.
How can I better distribute the random numbers over all range ?
thanks
© Stack Overflow or respective owner