Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 394 Bytes

File metadata and controls

14 lines (10 loc) · 394 Bytes

structure Shuffle

val shuffle: 'a Seq.t -> int -> 'a Seq.t

shuffle s seed produces a pseudorandom permutation of s based on the random seed seed.

For a particular seed, it will always produce the same result. Any two shuffles (using two different seeds) are independent. E.g. shuffle s seed is independent of shuffle s (seed+1).

Linear work and polylogarithmic span.