crypto-classical-0.0.2: An educational tool for studying classical cryptography schemes.

Copyright(c) Colin Woodbury, 2015
LicenseBSD3
MaintainerColin Woodbury <colingw@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Crypto.Classical.Shuffle

Contents

Description

 

Synopsis

List Scrambling

shuffle :: CPRG g => g -> [a] -> Integer -> [a] Source

Given a sequence (e1,...en) to shuffle, its length, and a random generator, compute the corresponding permutation of the input sequence.