From 93d5fec51a276b56620e4d1b10b14ce5842dab8c Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Sat, 22 Apr 2017 22:42:54 +0300 Subject: [PATCH] Add docstr to random.init --- random/random.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/random/random.js b/random/random.js index 3d8cd8b..5af7660 100644 --- a/random/random.js +++ b/random/random.js @@ -1,6 +1,10 @@ var random = { twister: null, + /** + * Must be called before any other methods can be called to initialize MersenneTwister. + * @param {number|null|undefined} seed Value to initialize MersenneTwister. + */ init: function (seed) { if (seed == null || seed === undefined) { seed = new Date().getTime();