Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1716

RandomNumberModule wrong answers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.10
    • 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.

      Attachments

        Activity

          People

            antonio Antonio Gallardo Rivera
            fiol Antonio Fiol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: