MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / getAsInt

Method getAsInt

onjava/Rand.java:117–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 class Pint implements IntSupplier {
116 SplittableRandom r = new SplittableRandom(47);
117 @Override public int getAsInt() {
118 return r.nextInt(MOD);
119 }
120 public int get(int n) { return getAsInt(); }
121 public int[] array(int sz) {
122 return r.ints(sz, 0, MOD).toArray();

Callers 5

mainMethod · 0.95
getMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected