Add docstr to random.init
This commit is contained in:
parent
b360ff1456
commit
93d5fec51a
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
var random = {
|
var random = {
|
||||||
twister: null,
|
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) {
|
init: function (seed) {
|
||||||
if (seed == null || seed === undefined) {
|
if (seed == null || seed === undefined) {
|
||||||
seed = new Date().getTime();
|
seed = new Date().getTime();
|
||||||
|
|
Loading…
Reference in a new issue