Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Apparently, the distribution of the numbers returned by the RandomNumberModule is not quite uniform.
Without any special configuration, its result "mod 4" usually (if not always) returns the same value (Windows platform, Tomcat 5.5, JDK 1.5).
Other than that, the code does not add up "min" to the result, so it gives a random number in the range (0,max-min), and not in (min,max) as expected.
Without any special configuration, its result "mod 4" usually (if not always) returns the same value (Windows platform, Tomcat 5.5, JDK 1.5).
Other than that, the code does not add up "min" to the result, so it gives a random number in the range (0,max-min), and not in (min,max) as expected.