#WordPress 7.2 is adding a (customizable) /random/ endpoint that returns a set of random posts. It's enabled by default (which it shouldn't imo) and getting some vigorous debate on the announcement post:
https://make.wordpress.org/core/2026/11/05/your-content-is-going-to-get-more-random/