BASELINE NowYouCanUse.com
Limited Availability CSS

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 (not yet Baseline). Latest engine implementation shipped on Oct 20, 2026.
Desktop Browser Engine Support
Google Chrome
156
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
26.2
Supported
Microsoft Edge
—
Unsupported
Mobile Browser Engine Support
Chrome Android
156
Firefox Android
—
Safari iOS
26.2
Specifications and References
id: random-function