Today I Learned - Rocky Kev

TIL Math.random() for design tricks

POSTED ON:

TAGS:

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:

TIL Shape-Outside to wrap text

Shape-outside provides a way to customize this wrapping, making it possible to wrap text around complex objects rather than simple boxes.

TIL Math.random() for design tricks

Math.random() is awesome! However, if you dealing with sensitive applications and need a more secure method of randomization, I’d recommend WebCrypto.

TIL How to implement two-way binding without a framework

One of the reasons we use React or Vue is because of that sweet sweet two-way binding. It's the automatic syncing of data between the model (data) and the view (UI) in both directions. Any changes made to the data will automatically update the view, and any changes made to the view will automatically update the data.