RandomChain

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

A possibly stateful chain producing random values.

Constructors

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

Functions

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

Properties

generator
Link copied to clipboard
common
val generator: RandomGenerator
the underlying RandomGenerator instance.

Sources

common source
Link copied to clipboard