View Single Post
Posts: 13 | Thanked: 20 times | Joined on Apr 2012
#1191
It's a silly line in perl, I put it into .sh script:
perl -ne 'print if (rand() < .02)' /home/user/music.list > /home/user/playlist.m3u

Change .02 value for more songs in output.

And music.list was generated via something like 'find /home/user/MyDocs/Music/ -name *.mp3 -print0'
 

The Following User Says Thank You to Sorrow For This Useful Post: