Skip to content

cryogenian/purescript-random

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Documentation

Module Control.Monad.Eff.Random

Types

data Random :: !

Values

 | Returns a random number between 0 (inclusive) and 1 (exclusive).

random :: forall e. Eff (random :: Random | e) Number

 | Takes a range `low` `high` and returns a random int uniformly distributed
 | in the closed interval `[low, high]`. It is unspecified what happens if
 | `low > high`.

randomInt :: forall e. Number -> Number -> Eff (random :: Random | e) Number

 | Returns a random number between min (inclusive) and max (exclusive).

randomRange :: forall e. Number -> Number -> Eff (random :: Random | e) Number

About

Random number generation

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • PureScript 58.1%
  • JavaScript 41.9%