fromSource

fun RandomGenerator.Companion.fromSource(source: RandomSource, seed: Long? = null): RandomSourceGenerator(source)

Returns RandomSourceGenerator with given RandomSource and seed.