I tried to translate the following line of Scala to Java 8 using the Streams API:
// Scala util.Random.shuffle((1 to 24).toList)
To write t
To perform a shuffle efficiently you need all the values in advance. You can use Collections.shuffle() after you have converted the stream to a list like you do in Scala.