Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8054807

(rand) Random.nextDouble() should be more uniform

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • None
    • None
    • core-libs
    • None

    Description

      The external evidence suggests we generate denormalized mantissa in Random.nextDouble(), which in turn skews the uniformity:
      http://engineering.medallia.com/blog/2014/08/a-plea-for-an-equal-opportunity-random/

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: