![](https://www.bram.us/wordpress/wp-content/uploads/2021/06/orderbyrandom.png)
How to optimize ORDER BY RANDOM()
![](https://www.bram.us/wordpress/wp-content/uploads/2021/06/orderbyrandom.png)
A rather geeky/technical weblog, est. 2001, by Bramus
ORDER BY RANDOM()
One of the side-effects when drawing things with a Houdini Paint Worklet and relying on Math.random() in your code, is that your layout might be jumpy. Check out my CSS Houdini Paint Worklet that draws colorful circles for example: whenever you resize the available space or change one of its properties — or some of …
Continue reading “Creating random-but-stable effects with the CSS Paint API”