RandomLogic

io.github.srs.model.logic.RandomLogic
See theRandomLogic companion object
trait RandomLogic[S <: State]

Logic for random number generation and state updates.

Type parameters

S

the type of the model state.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def random(s: S, rng: RNG): IO[S]

Generate a new random state based on the current state and RNG.

Generate a new random state based on the current state and RNG.

Value parameters

rng

the random number generator.

s

the current state.

Attributes

Returns

an IO effect producing the new state with updated RNG.