January 14th, 2013, 06:17 PM
Generaterandom numbers with equal probability
I wanna to generate numbers -in range- with equal probability.
So I have minimum value and maximum value and number of generate numbers and return array of numbers, like this:
public long doGenerate(int min, int max, int total)
January 16th, 2013, 02:33 AM
Re: Generaterandom numbers with equal probability
Use the Random class. Search the net for info on usage.
Originally Posted by shakatreh
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!