Cypher Rand Function

rand() returns a random floating point number in the range from 0 (inclusive) to 1 (exclusive); i.e. [0,1). The numbers returned follow an approximate uniform distribution.

Syntax: rand()

Returns: A Float.

Example

RETURN rand()

Returns the following Result

rand()
0.49986736531899345

Example

RETURN rand()

Returns the following Result

rand()
0.7522189621058555

Learn More