File: README.md

package info (click to toggle)
haskell-dice-entropy-conduit 1.0.0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104 kB
  • sloc: haskell: 99; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
This library uses rejection sampling to provide cryptographically secure `n`-sided dice rolls and random sampling (within a given range).

## Usage:

If we want to use the system-specific entropy source (`systemEntropy`) to
produce 10 dice rolls of a 6-sided dice (i.e. range [0,5]), you can write:

> systemEntropy $$ diceRolls 6 =$= CL.take 10
> [5,1,3,3,0,5,3,2,2,1]