jeudi 4 avril 2019

Why is Kotlin's Random number function called nextInt()?

The documentation says:

Gets the next random Int from the random number generator in the specified range.

I'm struggling to understand the "next" bit - as if there was an initial Int...

Why is it not simply called Random.random(10)?




Aucun commentaire:

Enregistrer un commentaire