NovelIO


Random

Namespace: NovelFS.NovelIO

Purely functional random number functions

Functions and values

Function or valueDescription
nextBytesIO length
Signature: length:int -> IO<byte []>

An IO action that returns the next byte array of the supplied length from the global random number generator

nextFloatIO
Signature: IO<float>

An IO action that returns the next float from the global random number generator

nextIO
Signature: IO<int>

An IO action that returns the next int from the global random number generator

nextRangeIO (min, max)
Signature: (min:int * max:int) -> IO<int>

An IO action that returns the next int in the specified range from the global random number generator

Fork me on GitHub