def shuffle

bend-collections-laws-crypto@1.0.0.0 · src/crypto/random.bend:145

import bend-collections-laws-crypto@1.0.0.0/src/crypto/random.bend as Random
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/random/rand.bend as R

145# a uniform permutation of items
146def shuffle(~A: Data, g: Gen, +items: List<&2, A>) -> List<&2, A> & Gen:
147  R.shuffle(~A, ~Gen, ~next, g, items)

Uses (5)

Used by (1)