summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/lcg_value.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/math/lcg_value.js')
-rw-r--r--node_modules/locutus/php/math/lcg_value.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/locutus/php/math/lcg_value.js b/node_modules/locutus/php/math/lcg_value.js
new file mode 100644
index 0000000..17afc8c
--- /dev/null
+++ b/node_modules/locutus/php/math/lcg_value.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function lcg_value() {
+ // eslint-disable-line camelcase
+ // discuss at: http://locutus.io/php/lcg_value/
+ // original by: Onno Marsman (https://twitter.com/onnomarsman)
+ // example 1: var $rnd = lcg_value()
+ // example 1: var $result = $rnd >= 0 && $rnd <= 1
+ // returns 1: true
+
+ return Math.random();
+};
+//# sourceMappingURL=lcg_value.js.map \ No newline at end of file