Quote:
Originally Posted by DrJim
Because of a bug in the random number generator, trying to do an integer match is surprisingly hard.
|
DrJim, if you are referring to the "integer vs double" bug, mentioned in the bug list, that can be overcome by using a function like
Number public Number random0and1 ( ) {
return ( ( ( Random.nextDouble() minimum = 0 maximum = 1.99 integerOnly = true ) * 1 ) ) ; }
The random number generator seems to work fine otherwise, as I get consistent results on 0's and 1's using such a function.