A toolkit for generating random numbers
Methods
static
gen(length) → {Number}
Generates a number, synchronously, with the specified number of digits.
Parameters
-
length
NumberThe number of digits the generated number should have.
Returns
-
NumberThe generated number.
Source
static
gens(length) → {Promise.<String>}
Generates a number, asynchronously, with the specified number of digits, outputted as a string.
Parameters
-
length
NumberThe number of digits the generated number should have.
Returns
-
Promise.<String>A promise that resolves with the generated number, formatted as a string.