hsnoise-0.0.1: A coherent 3d noise library.

Numeric.Noise.Random

Description

A simple implementation of a pure linear congruential psuedo-random number generator.

Synopsis

Documentation

randomInt :: Seed -> (Int, Seed)Source

Returns a random Int and the next seed given a seed.

randomInts :: Seed -> Int -> [Int]Source

Returns a random sequence of Ints given a seed and the number of Ints to generate.

shuffle :: [a] -> Seed -> [a]Source

Returns a shuffled list containing the same elements as the given list given a seed.