linsyking/messenger-extra/5.1.0

NOTE: the latest version is 7.0.0

Renamed to elm-messenger/messenger-extra. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/messenger-extra still install under that name. 12 versions of 20 come from the new location (see their notes).

Messenger.Misc.RNG

RNG module

Sample RNG module.

The seed is often given by the current tick.

genRandomInt : Int -> ( Int, Int ) -> Int

Generate a random int in the range [a, b] using the given seed.

genRandomListInt : Int -> Int -> ( Int, Int ) -> List Int

Generate a random list of ints in the range [a, b] using the given seed.