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

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

XMLWordPrintable

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

      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/

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

              Created:
              Updated:
              Resolved: