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

Method nextFloat

lib/java/util/Random.java:150–152  ·  view source on GitHub ↗

Generates a normally distributed random float number between 0.0 inclusively and 1.0 exclusively. @return float a random float number between [0.0 and 1.0) @see #nextDouble

()

Source from the content-addressed store, hash-verified

148 * @see #nextDouble
149 */
150 public float nextFloat() {
151 return (next(24) / 16777216f);
152 }
153
154 /**
155 * Pseudo-randomly generates (approximately) a normally distributed

Callers

nothing calls this directly

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected