1.1.7 • Published 9 months ago

@santi100/random-lib v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Santi's Random Number Library

Build Status GitHub stars License

WARNING: This library doesn't generate cryptographically safe random numbers, due to its reliability on Math.random(). This library is designed to be portable across the browser and Node.js, to the expense of security.

There's no warranty, and be aware there might be bugs in my code. Pull requests and issues are welcome!

API

random(max: number, min: number = 0)

Generate a random integer between min (0 by default) and max.

randomFloat(max: number, min: number = 0)

Generate a random floating-point number between min (0 by default) and max.

1.1.7

9 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.1

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7-cjs

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago