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
public static List getSortedInRandomOrder(List list) { return list .stream() .sorted((o1, o2) -> ThreadLocalRandom.current().nextInt(-1, 2)) .collect(Collectors.toList()); }