As we saw in an earlier example, the random numbers that p5.js creates for us are psuedo-random. But what if we want REALLY random numbers?
p5.js hides a lot of the "messy bits" from us, providing easy ways to do things – the built-in random() command is a great example. But being built on top of Javascript, we also get access to all the rad stuff it can do, including high-quality random numbers using Javascript's "crypto" features. The way these numbers are generated varies depending on what system you're using, but it can include entropy from your hard-drive!
🖥 https://editor.p5js.org/jeffThompson/...
ALL THE VIDEOS IN THIS UNIT
🎥 • CP1: Week 04 (Randomness)
SEE ALSO
💡 https://developer.mozilla.org/en-US/d...