Name

noiseSeed()

Examples
xoff = 0.0
noiseSeed(0)
stroke(0, 10)
for i in range(1000):
  xoff = xoff + .01
  n = noise(xoff) * width
  line(n, 0, n, height)
Description Sets the seed value for noise(). By default, noise() produces different results each time the program is run. Set the seed parameter to a constant to return the same pseudo-random numbers each time the software is run.
Syntax
noiseSeed(seed)
Parameters
seedint: seed value
Related noise()
noiseDetail()
random()
randomSeed()
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License