Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- fisherYatesShuffle :: PrimMonad f => Gen (PrimState f) -> MVector (PrimState f) a -> f ()
Documentation
fisherYatesShuffle :: PrimMonad f => Gen (PrimState f) -> MVector (PrimState f) a -> f () Source #
Randomly permute a mutable Vector
.
You can use this via
to permute an immutable vector.modify
fisherYatesShuffle