def from_state.if

bend-kit-random@0.1.0.1 · random.bend:26

import bend-kit-random@0.1.0.1/random.bend as Random
import Base

26def from_state.if(zero: Bool, a: U32, b: U32, c: U32, d: U32) -> Rng:
27  match zero:
28    case True{}:
29      seed(0)
30    case False{}:
31      Rng{a, b, c, d}

Uses (4)

Used by (1)