diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/math/mt_rand.js | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/math/mt_rand.js')
-rw-r--r-- | node_modules/locutus/php/math/mt_rand.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/locutus/php/math/mt_rand.js b/node_modules/locutus/php/math/mt_rand.js deleted file mode 100644 index 42f3be5..0000000 --- a/node_modules/locutus/php/math/mt_rand.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -module.exports = function mt_rand(min, max) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/mt_rand/ - // original by: Onno Marsman (https://twitter.com/onnomarsman) - // improved by: Brett Zamir (http://brett-zamir.me) - // input by: Kongo - // example 1: mt_rand(1, 1) - // returns 1: 1 - - var argc = arguments.length; - if (argc === 0) { - min = 0; - max = 2147483647; - } else if (argc === 1) { - throw new Error('Warning: mt_rand() expects exactly 2 parameters, 1 given'); - } else { - min = parseInt(min, 10); - max = parseInt(max, 10); - } - return Math.floor(Math.random() * (max - min + 1)) + min; -}; -//# sourceMappingURL=mt_rand.js.map
\ No newline at end of file |