In kotlin-stdlib-common is there any source of randomness available out of the box? Whether it's some implementation of standard java.util.Random
, kotlin.math.random*
or basic current time millis that I can use to create my own random number generator? I can't find any.
If it's not there, how would you get the source of randomness without setting your own platform dependent implementations? This is the only method I need:
expect class Rng {
fun nextInt(): Int
}
I'm trying to make it platform agnostic.