secure-random-bigint

1.0.0 • Public • Published

secure-random-bigint

Generate a random BigInt within a range

npm i secure-random-bigint

Based on secure-random-uniform/bigint.js.

Usage

const randomBigInt = require('secure-random-bigint')

const min = 1n
const max = 90000000000000000000000000000000000000000000000000n
const num = randomBigInt(min, max)
// => 3377836017337791808106320086972099289841401582994

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i secure-random-bigint

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • lukks