csprng-num

1.2.0 • Public • Published

this code generates a cryptographic secure random number in the range 0 and 1 and prints it to the console. if you give it some paramaters it will generate a random number in the range of the first parameter and the second parameter. it contains an async function that will do exactly the same thing but it will wait for the result.

you can set more or less bytes by callin the funtion setBytes(n) where n is the number of bytes you want to use.

when wanting a number call Random or RandomAsync and give it the range you want to have the number in or leave it empty for a number between 0 and 1.

Package Sidebar

Install

npm i csprng-num

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

2.21 kB

Total Files

3

Last publish

Collaborators

  • kajvans