node-random
A random.org API client
Install
npm install node-random
Usage
The options
argument is always optional.
numbers
is an alias for integers
sequence
is an alias for sequences
var random = ; random; random; random; random;
Options Defaults
random.integers
See here for the meanings (Option names are slightly different);
number
-1
minimum
-0
maximum
-10000
columns
-1
(When this is more than 1,data
is a 2D array -- rows by columns)base
-10
random
-"new"
random.sequences
See here for the meanings (Option names are slightly different);
minimum
-0
maximum
-10
columns
-1
(When this is more than 1,data
is a 2D array -- rows by columns)base
-10
random
-"new"
random.strings
See here for the meanings (Option names are slightly different);
number
-1
length
-10
digits
-true
upper
-true
lower
-true
unique
-false
random
-"new"
random.quota
See here for the meanings (Option names are slightly different);
ip
-""
Examples
var random = ; // Get 2 random numbers between 1 and 6console;random; // Get a random 3x3 grid and print the middle vertical rowrandom; // Get 20 different lowercase charactersrandom; // Check your quotarandom;
Aliases
random.numbers
=random.integers
random.sequence
=random.sequences
random.string
=random.strings