random-int-js
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

random-int

Usage

import {randomUIntBelow} from "random-int"

`randomUIntBelow(max)` returns a random non-negative integer less than max `(0 <= output < max)`. `max` must be at most 2^53.

randomUIntBelow(4); // Generates a uniform random value from [0, 1, 2, 3].

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i random-int-js

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

112 kB

Total Files

19

Last publish

Collaborators

  • lgarron