How to generate a random double in the interval (0.0,1] in JAVA
It should include the number 1 but not 0.
double initProbability=Math.random(); does not work for my problem
How to generate a random double in the interval (0.0,1] in JAVA
It should include the number 1 but not 0.
double initProbability=Math.random(); does not work for my problem
1d - Math.random()
does the trick.