MCPcopy Create free account
hub / github.com/davidgiven/luje / nextDouble

Method nextDouble

lib/java/util/Random.java:139–141  ·  view source on GitHub ↗

Generates a normally distributed random double number between 0.0 inclusively and 1.0 exclusively. @return a random double in the range [0.0 - 1.0) @see #nextFloat

()

Source from the content-addressed store, hash-verified

137 * @see #nextFloat
138 */
139 public double nextDouble() {
140 return ((((long) next(26) << 27) + next(27)) / (double) (1L << 53));
141 }
142
143 /**
144 * Generates a normally distributed random {@code float} number between 0.0

Callers 3

nextGaussianMethod · 0.95
randomMethod · 0.80
randomMethod · 0.80

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected