I need the ability to run a PHP script 20 times a day at completely random times. I also want it to run only between 9am - 11pm.
I\'m familiar with creating cron job
So I'm using the following to run a command between 1AM and 330AM
0 1 * * * perl -le 'sleep rand 9000' && *command goes here*
That has been taking care of my random needs for me. That's 9000 seconds == 150 minutes == 2.5 hours