Phaser API Documentation

  Version: 
timestamp(min, max)

Description:

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:
Description:

A random timestamp between min and max.

Type:
  • number