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

Method random

patterns/recyclea/RecycleA.java:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 private static SplittableRandom rand =
20 new SplittableRandom(42);
21 public static Trash random() {
22 return constructors
23 .get(rand.nextInt(SIZE))
24 .apply(rand.nextDouble());
25 }
26}
27
28public class RecycleA {

Callers 1

BoxClass · 0.45

Calls 2

applyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected