[csswg-drafts] [css-values-5] seeded random values (#12072)

romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-5] seeded random values ==
To make pages more dynamic and whimsical I sometimes use seeded random values. 
These are generated server-side and I will typically use the request url to compute the initial random seed. Each subsequent call to the random function returns a new value.
I find that this gives good dynamic results that are still deterministic.
Visiting the same page twice doesn't result in different outcomes.

But each individual page has their own distinct and seemingly random patterns.

This isn't currently possible with the [`random()` function](https://drafts.csswg.org/css-values-5/#random).

Could this be done with something like counters? Except that `counter()` returns a string, and not a number. So it can't currently be used a `fixed <number>`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12072 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 13 April 2025 11:38:18 UTC