Basic usage

Genearate a number within a range. This function is meant for utility use — not cryptographic.

import { random } from 'radash'

random(0, 100) // => a random number between 0 and 100


This _.random function is 100% covered by tests. See them and contribute at GitHub.


See the source for _.random on GitHub.