random-util

Randomness utility.

npm install random-util
10 downloads in the last week
12 downloads in the last month

A collection of functions for dealing with random numbers.

Uniform random numbers

  • random()
  • randomInteger(min, max)
  • randomNumber(min, max)

Biased random numbers

  • boased(bias)
  • biasedInteger(min, max, bias)
  • biasedNumber(min, max, bias)
npm loves you