Sets the seed value for the random() and randomGaussian() functions.
By default, random() and randomGaussian() produce different results each time a sketch is run. Calling randomSeed()
with a constant argument, such as randomSeed(99)
, makes these functions produce the same results each time a sketch is run.
Examples
Syntax
randomSeed(seed)
Parameters
seed
Number:
seed value.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/random.js and open a pull request!