January 14th, 2013, 06:22 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 15th, 2013, 07:07 AM
Can you explain the problem you are having with your program? What have you tried and what happened when you compiled and executed it?
Are you going to write your own random number generator or use one of the java classes?