random numbers in java?
I need to generate random numbers in java, and I need them to be completely evenly distributed(or close to that) specifically I need to generate around 300 numbers between 1 and 100...
math random method is not helping, nor any other traditional random method. the problem is the numbers I get from those methods repeat themselves after a certain time, or that they are not evenly distributed(so I get more than half the numbers below 50 and less than half above it...)
any ideas?
__________________
"Loyalty to the country always. Loyalty to the government when it deserves it. "
-Mark Twain
Last edited by mr_j; 12-16-2011 at 08:40 PM.
|