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.