TIL Math.random() for design tricks
POSTED ON:
I love this.
Random Particles:
See the Pen neon hexagon-forming particles by Matei Copot (@towc) on CodePen.
Generative Art
See the Pen Generative art from rectangleworld by Theun (@tjoen) on CodePen.
Random Words
See the Pen Random Words! by CSS-Tricks (@css-tricks) on CodePen.
Also this last bit:
Is Math.random() the same as WebCrypto?
As you’ve seen from this article, Math.random() is awesome! However, if you dealing with sensitive applications and need a more secure method of randomization, I’d recommend WebCrypto. Reasons you may want to use WebCrypto include temporary verification codes, random password generation, randomized lottery numbers, etc.
via Lots of Ways to Use Math.random() in JavaScript
Related TILs
Tagged: codepen