Rand.intn: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/src/math/random/rand.bend as Rand Lines 212-214 of bend-collections-laws-math@1.0.0.0/src/math/random/rand.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/src/math/random/rand.bend&start_line=212&end_line=214 import Base import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W # uniform in [0, n) for 0 < n < 2^48 (Go's IntN); (0, s) for n == 0 def intn(~S: Data, ~next: S -> W.U64 & S, s: S, +n: Nat) -> Nat & S: intn_z(~S, ~next, s, n, Nat.is_eq(n, 0n)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/random/rand.bend&name=intn_z https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/u64.bend&name=U64