Game.LambdaHack.Common.Random

The Rng monad

type Rnd a

Random operations

randomR

random

oneOf

frequency

cast

Casting dice

data RollDice

rollDice

castDice

maxDice

minDice

meanDice

Casting 2D coordinates

data RollDiceXY

castDiceXY

Casting dependent on depth

type RollDeep

castDeep

chanceDeep

intToDeep

maxDeep

Fractional chance

type Chance

chance

Run using the IO RNG

rndToIO