Random Numbers in Kotlin
Kotlin’s kotlin.random
package provides pseudorandom number generation.
To run the program, save it as RandomNumbers.kt
and use the Kotlin compiler:
Some of the generated numbers may be different when you run the sample.
See the kotlin.random package docs for references on other random quantities that Kotlin can provide.