def lcg

bend-collections-laws-math@1.0.0.0 · spec/math/random/pcg.bend:37

import bend-collections-laws-math@1.0.0.0/spec/math/random/pcg.bend as Pcg
import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C

37def lcg(+mul: Nat, +inc: Nat, +s: Nat) -> Nat:
38  C.low(128n, Nat.add(Nat.mul(s, mul), inc))

Uses (4)

Used by (1)