O'Reilly logo
  • Tansu Dasli thinks this is interesting:

// roll die 60,000,000 times; use die value as frequency index

From

Cover of Java® 9 for Programmers, Fourth Edition

Note

IntStream.range(0, 60_000_000).forEach(roll -> ++frequency[1 + random.nextInt(6)]);