MCPcopy
hub / github.com/kevin-wayne/algs4 / uniform

Method uniform

src/main/java/edu/princeton/cs/algs4/StdRandom.java:125–128  ·  view source on GitHub ↗

Returns a random real number uniformly in [0, 1). @return a random real number uniformly in [0, 1) @deprecated Replaced by #uniformDouble().

()

Source from the content-addressed store, hash-verified

123 * @deprecated Replaced by {@link #uniformDouble()}.
124 */
125 @Deprecated
126 public static double uniform() {
127 return uniformDouble();
128 }
129
130 /**
131 * Returns a random real number uniformly in [0, 1).

Callers 2

uniformIntMethod · 0.95
uniformDoubleMethod · 0.95

Calls 3

uniformDoubleMethod · 0.95
uniformIntMethod · 0.95
uniformLongMethod · 0.95

Tested by

no test coverage detected