randomSeed()

Math / Random

Description

Sets the seed value for random(). Repeated calls with the same seed will produce the same sequence.

Syntax

void randomSeed(long s)

Parameters

NameTypeDescription
slongseed value

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...