MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / drand

Method drand

src/main/java/com/volmit/adapt/util/M.java:205–207  ·  view source on GitHub ↗

Get a random double from to (inclusive) @param f the from @param t the to @return the value

(double f, double t)

Source from the content-addressed store, hash-verified

203 * @return the value
204 */
205 public static double drand(double f, double t) {
206 return f + (Math.random() * ((t - f) + 1));
207 }
208
209 /**
210 * Get system Nanoseconds

Callers

nothing calls this directly

Calls 1

randomMethod · 0.80

Tested by

no test coverage detected