This note has an interactive demo. Try it in the original This was the week CSS learned to roll dice. On November 24 Firefox 161 shipped the random() function, which picks a random value within a range, optionally in steps.
Source: [Dev.to](https://dev.to/richicodes/week-in-the-lab-css-learns-to-roll-dice-52be)