Add docstr to random.init

This commit is contained in:
Christoph Diehl 2017-04-22 22:42:54 +03:00
parent b360ff1456
commit 93d5fec51a

View file

@ -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();