RandomDataGenerator#timestamp()

timestamp(min, max) → {number}

Returns a random timestamp between min and max, or between the beginning of 2000 and the end of 2020 if min and max aren't specified.

Parameters
Name Type Description
min number

The minimum value in the range.

max number

The maximum value in the range.

Returns
number -

A random timestamp between min and max.

Source code: math/RandomDataGenerator.js (Line 296)
doc_phaser
2017-02-14 11:06:47
Comments
Leave a Comment

Please login to continue.