Name

noiseSeed

Examples
xoff <- 0

setup <- function() {
    noiseSeed(0)
    stroke(0, 10)
}

draw <- function() {
    xoff = xoff + 0.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
Creative Commons License