Why does the division of the matrix stay the same even though the 'toggle' variable is written within the draw function and thus is processed 30 times per second. I would have expected the line matrix to change every time the draw function is executed. Why do the random values stay the same?
2012-01-01 @ 9:36 pm
Comment by Benedikt Groß
because in each new iteration of the draw loop the randomSeed() function is called. the result is that the randomness or the sequence of the toggle numbers is determined by the parameter of the randomSeed() function.