News

Last week we created a textured paper canvas and got a healthy dose of the P5 API and JavaScript’s Math.random() function. This week, we’re going to look at a specific element of watercolor to ...
Math.random() generates a random pseudo-number between 0 and 1. If we want a random value between 10 and 15, we can take the output of Math.random() and multiply it by the difference between the ...
And they don't say the random number generator function in JavaScript -- Math.random () -- is broken. They say it "offers sub-par quality." Specifically, V8 used a pseudorandom number generator (PRNG) ...