Group Group Group Group Group Group Group Group Group

Chapter 4: mini-exercises Random() vs Random

The 2nd mini-exercise on p93 refers to Random().nextInt(6) which requires the import java.util.* which was not obvious to me initially, however via IntelliJ’s suggestion I realised Random.nextInt(6) is acceptable (requires kotlin.random.Random). I wonder if it’s better in the next revision to favour the kotlin include over the Java one? (I’m using kotlin v 1.3.72).

@michaels Thank you for your suggestion. I will forward it to the book team.