I use "Least Recently Played" for all songs. I don't want to use random ever. However, as most of you know, the categories end up starting to become predictable because the songs will run in order (barring title/artist/etc separation rules).
I'd like to periodically reset the last played date/time for songs at the bottom of my category so it will somewhat randomize them again. I'm having trouble with a SQL query to do it. Maybe someone here can help.
Get count of songs in the category and then figure out what 20% (or whatever percent, depending on the category) is. So, if the category has 1,000 songs in it, then it would come up with 200 as my number.
Then, select the songs, ordering by date/time played ascending (so the oldest ones come first), then reset the date/time played on the first 200 songs.
Does this make sense?