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

Method frand

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

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

(float f, float t)

Source from the content-addressed store, hash-verified

192 * @return the value
193 */
194 public static float frand(float f, float t) {
195 return f + (float) (Math.random() * ((t - f) + 1));
196 }
197
198 /**
199 * Get a random double from to (inclusive)

Callers

nothing calls this directly

Calls 1

randomMethod · 0.80

Tested by

no test coverage detected