noiseSeed setting


#1

Hi,

I was wondering if there’s a way to change noise seed similar to processing’s noiseSeed function.

“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.”

What I’m looking for is to randomize the “noiseSeed(seed)” seed value so that I’d get a different numbers with the same ofNoise(value) value number.

e.g. ofNoise(2.0) always produces 0.5, whereas I’d like it to depend on the ‘seed nr’. Perhaps there’s a workaround that I’m missing?

Thanks


#2

So you can make an array of seeds in your setup function and then use those seeds with

https://openframeworks.cc/documentation/math/ofMath/#!show_ofSeedRandom