From 328c6eefc19e1cae6e2a47eadda6dfedbb9a51f0 Mon Sep 17 00:00:00 2001 From: corncobman21 <corncobman21@hotmail.com> Date: Fri, 29 Dec 2017 04:35:28 -0500 Subject: [PATCH] Rename random functions --- src/js/utilJS.tw | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/utilJS.tw b/src/js/utilJS.tw index f266637675f..60e1b6694f3 100644 --- a/src/js/utilJS.tw +++ b/src/js/utilJS.tw @@ -401,11 +401,11 @@ window.numberWithCommas = function(x) { } -window.random = function(min,max) { +window.jsRandom = function(min,max) { return Math.floor(Math.random()*(max-min+1)+min); } -window.randomMany = function (arr, count) { +window.jsRandomMany = function (arr, count) { var result = []; var _tmp = arr.slice(); for (var i = 0; i < count; i++) { @@ -415,7 +415,7 @@ window.randomMany = function (arr, count) { return result; } -window.either = function(choices) { +window.jsEither = function(choices) { var index = Math.floor(Math.random() * choices.length); return choices[index]; } -- GitLab