Limited Availability
CSS
id: random-function
random()
The
random() CSS function chooses a random numeric value within a specified range. This allows for dynamic, randomized styling using CSS.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
—
Unsupported
Mozilla Firefox
—
Unsupported
Apple Safari
26.2
Supported
Microsoft Edge
—
Unsupported
Mobile Browser Engine Support
Chrome Android
—
Firefox Android
—
Safari iOS
26.2
Specifications and References
MDN Browser Compat Data Keys: