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

Method getAsLong

onjava/Rand.java:145–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 class Plong implements LongSupplier {
144 SplittableRandom r = new SplittableRandom(47);
145 @Override public long getAsLong() {
146 return r.nextLong(MOD);
147 }
148 public long get(int n) { return getAsLong(); }
149 public long[] array(int sz) {
150 return r.longs(sz, 0, MOD).toArray();

Callers 2

getMethod · 0.95
timeTestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected