Package-level declarations
Types
Link copied to clipboard
Implements RandomGenerator by delegating all operations to Random.
Link copied to clipboard
Link copied to clipboard
class RandomChain<out R>(val generator: RandomGenerator, gen: suspend RandomGenerator.() -> R) : Chain<R>
A possibly stateful chain producing random values.
Link copied to clipboard
interface RandomGenerator
An interface that is implemented by random number generator algorithms.
Link copied to clipboard
A type-specific double chunk random chain
Functions
Link copied to clipboard
Link copied to clipboard
inline fun <T> MCScope.async(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend MCScope.() -> T): Deferred<T>
Specialized async for MCScope. Behaves the same way as regular CoroutineScope.async, but also stores the generator fork. The method itself is not thread safe.
Link copied to clipboard
Create a generic random chain with provided generator
Link copied to clipboard
inline fun MCScope.launch(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, crossinline block: suspend MCScope.() -> Unit): Job
Specialized launch for MCScope. Behaves the same way as regular CoroutineScope.launch, but also stores the generator fork. The method itself is not thread safe.