diff --git a/lib/rand.js b/lib/rand.js index 4ed2bfa..983a5df 100644 --- a/lib/rand.js +++ b/lib/rand.js @@ -12,6 +12,10 @@ function getInt(min, max) { return Math.floor(randomize() * (max - min + 1)) + min; } +function getSeed() { + return getInt(10000000, 99999999); +} + function one(arr) { return arr[getInt(0, arr.length - 1)]; } @@ -105,6 +109,7 @@ function discardOne(arr, filename) { exports.randomize = randomize; exports.getInt = getInt; +exports.getSeed = getSeed; exports.one = one; exports.makeString = makeString; exports.uuidv4 = uuidv4; @@ -114,6 +119,6 @@ exports.sample = sample; exports.discardOne = discardOne; exports.discardCallback = discardCallback; -exports.VERSIONINFO = "Random Module (rand.js) version 0.5"; +exports.VERSIONINFO = "Random Module (rand.js) version 0.6"; exports.global = global; exports.require = global.require;