nv-random-number
- nv-random-number
- random int, bigint...
install
- npm install nv-random-number
usage
example
const rnd = require('nv-random-number')
> rnd.int(0,5)
2
> rnd.int(0,5)
0
> rnd.int(0,5)
3
> rnd.float(0,5)
0.5840682040370606
> rnd.float(0,5)
3.1188748130175687
> rnd.bigint(0n,1111111111111111111n)
659479433379773978n
> rnd.bigint(0n,1111111111111111111n)
46395972417878550n
> rnd.bigint(0n,1111111111111111111n)
585546157290179085n
> rnd.bigint(0n,1111111111111111111n)
10486036301675761n
> rnd.bigint(0n,1111111111111111111n)
695409588430068227n
APIS
{
int32: [Function: int32],
float32: [Function: float32],
int: [Function: int],
float: [Function: float],
bigint: [Function: bigint],
z2one: [Function: z2one],
zto255: [Function: zto255],
zto65535: [Function: zto65535],
a2z: [Function: a2z],
A2Z: [Function: A2Z]
}
LICENSE