- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Fri, 24 Jan 2020 11:57:15 +0000
- To: public-css-archive@w3.org
While the CSSWG just decided that a direct equivalent of ECMA-262ʼs `Math.random()` function, which works on a range with static minimum 0.0 and maximum 1.0, I think the more explicit variants just described by @DavidBradbury could be acceptable and useful in CSS. The range-based variant works similar to means, of which we only have the _quadratic mean_ yet, called `hypot()`. We probably should add it together with function(s) for _arithmetic mean_ and _geometric mean_ at least, or not at all. The set-based variant works like existing `min()` and `max()`. Similar functions would be _mode_ (for the most frequent value), _median_ (for the central value) and _index_ or _choose_ (for a specific value). -- GitHub Notification of comment by Crissov Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2826#issuecomment-578101842 using your GitHub account
Received on Friday, 24 January 2020 11:57:17 UTC