MCPcopy Create free account
hub / github.com/ReadyTalk/avian / next

Method next

classpath/java/util/Random.java:40–43  ·  view source on GitHub ↗
(int bits)

Source from the content-addressed store, hash-verified

38 }
39
40 protected int next(int bits) {
41 seed = ((seed * Mask) + 0xBL) & ((1L << 48) - 1);
42 return (int) (seed >>> (48 - bits));
43 }
44
45 public int nextInt(int limit) {
46 if (limit <= 0) {

Callers 3

nextIntMethod · 0.95
nextLongMethod · 0.95
nextDoubleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected