Web features explorer

random()

Limited availability

The random() CSS function chooses a random numeric value within a specified range. This allows for dynamic, randomized styling using CSS.

Browser support

  • Chrome Not supported
  • Chrome Android Not supported
  • Edge Not supported
  • Firefox Not supported Bugs: 1836588
  • Firefox for Android Not supported
  • Safari 26.2 Released on 2025-12-12
  • Safari on iOS 26.2 Released on 2025-12-12

Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.