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

Method randomRange

src/main/java/emu/grasscutter/utils/Utils.java:30–32  ·  view source on GitHub ↗
(int min, int max)

Source from the content-addressed store, hash-verified

28 public static final Random random = new Random();
29
30 public static int randomRange(int min, int max) {
31 return random.nextInt(max - min + 1) + min;
32 }
33
34 public static float randomFloatRange(float min, float max) {
35 return random.nextFloat() * (max - min) + min;

Callers 7

processDropMethod · 0.95
upgradeRelicMethod · 0.95
dropItemsMethod · 0.95
dropItemsMethod · 0.95
handleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected