RandomChain

class RandomChain<out R>(generator: RandomGenerator, gen: suspend RandomGenerator.() -> R) : Chain<R>

A possibly stateful chain producing random values.

Constructors

Link copied to clipboard
fun <out R> RandomChain(generator: RandomGenerator, gen: suspend RandomGenerator.() -> R)

Functions

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<R>)
Link copied to clipboard
open suspend override fun fork(): Chain<R>
Link copied to clipboard
open suspend override fun next(): R

Properties

Link copied to clipboard
val generator: RandomGenerator

the underlying RandomGenerator instance.

Sources

Link copied to clipboard