This article is pretty fun. I'd solve it with a bunch of stacked links, then have a registered custom property that uses random() to set an int between 0 and number-of-links, then use that in an if() function to display:block one link (matching the randomly chosen int) master.dev/blog/a-butto...

A Button That Links to a Random Post in HTML & CSS OnlyPerhaps this theoretical button wasn't a button at all, but 50 links in a trenchcoat.master.dev