perfect-vector-shuffle: Library for performing vector shuffles

[ bsd3, library, random, vector ] [ Propose Tags ]

This package contains functions for performing shuffles on mutable and immutable vectors. The shuffles are uniform at random amongst all permuations.

For an example of how to use it:

module Example where

import Data.Vector
import Immutable.Shuffle

myVector :: Vector Int
myVector = fromList [1..10]

shuffleMyVector :: IO (Vector Int)
shuffleMyVector = shuffleM myVector

This gives the following:

> shuffleMyVector
> shuffleMyVector
Versions [faq] 0.1.0, 0.1.1
Change log
Dependencies base (>= && <4.13), MonadRandom (>= && <0.6), primitive (>= && <0.7), random (==1.1.*), vector (>=0.12.0 && <0.13) [details]
License BSD-3-Clause
Copyright 2019
Author Callan McGill
Category Random, Vector
Home page
Bug tracker
Source repo head: git clone
Uploaded by callanmcgill at Thu May 2 19:17:19 UTC 2019
Distributions NixOS:0.1.1
Downloads 121 total (20 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees