uniqueId()

Returns a unique identifier.

Syntax

uniqueId()
uniqueid()

Usage

Generates a unique identifier in a sequence beginning with 0. This function has no arguments, and it returns a long.

Example

uniqueId() returns 0 the first time it is called, 1 the second time, and so on.