mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update rand.js
This commit is contained in:
parent
2510b9afaf
commit
e8fd9adf73
|
@ -53,11 +53,18 @@ function uuidv4() {
|
|||
});
|
||||
}
|
||||
|
||||
function shffle(arr) {
|
||||
return arr.sort(function() {
|
||||
return randomize() - 0.5;
|
||||
});
|
||||
}
|
||||
|
||||
exports.randomize = randomize;
|
||||
exports.getInt = getInt;
|
||||
exports.one = one;
|
||||
exports.makeString = makeString;
|
||||
exports.uuidv4 = uuidv4;
|
||||
exports.shffle = shffle;
|
||||
|
||||
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
|
||||
exports.global = global;
|
||||
|
|
Loading…
Reference in New Issue
Block a user