roguestar-engine-0.2.1: src/Dice.hs
module Dice (roll)
where
import Control.Monad.State
import DB
import RandomUtils
roll :: (DBReadable db) => [a] -> db a
roll xs = liftM (pick xs) dbNextRandomInteger
module Dice (roll)
where
import Control.Monad.State
import DB
import RandomUtils
roll :: (DBReadable db) => [a] -> db a
roll xs = liftM (pick xs) dbNextRandomInteger