seeded-random
Version:
CLI and code pseudo random number generator
18 lines (14 loc) • 308 B
JavaScript
var Random = require('./js/Random');
var Command = require('./js/Command');
var random = new Random();
/*
* If called from command line then switch
* commands. Else export 'random' object.
*/
if (require.main === module) {
new Command();
}
else {
module.exports = random;
}