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

Method newItem

patterns/PaperScissorsRock.java:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 private static SplittableRandom rand =
24 new SplittableRandom(47);
25 public static Item newItem() {
26 return items.get(rand.nextInt(SZ)).get();
27 }
28 public static Tuple2<Item,Item> newPair() {
29 return tuple(newItem(), newItem());
30 }

Callers 1

newPairMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected