RandomChain

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

A possibly stateful chain producing random values.

Constructors

Link copied to clipboard
constructor(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

the underlying RandomGenerator instance.