CSS & layoutCSS random() remembers its roll, and the cache key decides when
On Piccalilli, Mat Marquis builds randomly rotated sidenotes with CSS random() and explains how the function's seed and cache key are scoped. That scoping is why a sidenote keeps the same rotation across breakpoints instead of re-rolling.