I would love to be able to enable offline caching for a randomly sorted playlist with a max item count limit in place. It would be also fine for me to add a stable random playlist sorting (If you ask me, fixing the seed of the random function in this case should already suffice, we are not hunting any cryptographic goals with playlists anyway).
Problem solved:
If I create a smart playlist, and select random sorting and N as max item count. When enabling auto offline cache, this leads to downloading all songs matching the criteria, instead of only N.
Brought benefits:
Pretty great to have a couple random rule based tracks available on the go.
Added a new Random (Stable) sort order for smart playlists. (Random is stable until you update the seed by pressing the asc/dec arrow to generate a new one)
I was also trying to figure out how this Random (Stable) logic worked as a way to choose a smaller subset of songs from a larger group to download them when I’m on the network of the server. I thought I’d share how I did it if others are interested in how this requested feature can be used.
I already had a playlist containing all the songs I want and then I created a smart playlist to go fetch a limited number of Random (Stable) items using “In playlist” filter. Other filters could be used here.
As OP said, when you change the sort order, the random playlist will refresh. If you set the smart playlist to be cached, you’ll therefore get new songs from the server.