MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / randomFloatRange

Method randomFloatRange

src/main/java/emu/grasscutter/utils/Utils.java:34–36  ·  view source on GitHub ↗
(float min, float max)

Source from the content-addressed store, hash-verified

32 }
33
34 public static float randomFloatRange(float min, float max) {
35 return random.nextFloat() * (max - min) + min;
36 }
37
38 public static double getDist(Position pos1, Position pos2) {
39 double xs = pos1.getX() - pos2.getX();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected