mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update rand.js
This commit is contained in:
parent
e8fd9adf73
commit
3439e70eb1
|
@ -1,4 +1,4 @@
|
|||
// Ramdom
|
||||
// rand.js
|
||||
|
||||
function randomize() {
|
||||
return Math.random();
|
||||
|
@ -53,7 +53,7 @@ function uuidv4() {
|
|||
});
|
||||
}
|
||||
|
||||
function shffle(arr) {
|
||||
function shuffle(arr) {
|
||||
return arr.sort(function() {
|
||||
return randomize() - 0.5;
|
||||
});
|
||||
|
@ -64,7 +64,7 @@ exports.getInt = getInt;
|
|||
exports.one = one;
|
||||
exports.makeString = makeString;
|
||||
exports.uuidv4 = uuidv4;
|
||||
exports.shffle = shffle;
|
||||
exports.shuffle = shuffle;
|
||||
|
||||
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
|
||||
exports.global = global;
|
||||
|
|
Loading…
Reference in New Issue
Block a user