The library itself is a constructor that returns a '''Random''' object. It is not
necessary to use ''new'' before the constructor.

var Random =require('random');

var random =newRandom(42);

The Random object implements next(), nextInt(), and nextBoolean() as per Java's API.
nextElement and shuffle are some random functions that are often done to arrays.
Each element in the range has an equal chance of being selected.