RandomNumberModule wrong answers
--------------------------------
Key: COCOON-1716
URL: http://issues.apache.org/jira/browse/COCOON-1716
Project: Cocoon
Type: Bug
Reporter: Antonio Fiol
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira