randomSeed()
Math / RandomDescription
Sets the seed value for random(). Repeated calls with the same seed will produce the same sequence.
Syntax
void randomSeed(long s)
Parameters
| Name | Type | Description |
|---|---|---|
| s | long | seed value |
Returns
voidRelated
Under the Hood
From Processing.h:
void randomSeed(long s);
Under the Hood
From Processing.cpp:
void PApplet::randomSeed(long s) {
_rng.seed(static_cast<uint32_t>(s));
_rngDist.reset();
}