Skip to content

Suiteopensavvy.prepared.suite.randomRandomuse

use


suspend fun <T> use(block: (Random) -> T): T

Provides block with the underlying Random source.

Warning. The Kotlin standard library's random generator is not thread-safe. This class ensures only a single thread may call this function at once. It is therefore unsafe to access the provided generator after the call to this function has ended.