v155 · css random()

Caching controls

Each random() resolves independently by default. That is right for scattering and wrong the moment two properties are supposed to agree — a bar's height and its label, a width and a height meant to stay square. The caching argument is how you tie them, and the difference is visible below.

Four ways to resolve the same rule

The rule

Twelve bars, drawn with it

Measured from the rendered bars
measurementvalue

see also