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
You can try with this example to use random times before execute command:
#!/bin/bash # start time date +"%H:%M:%S" # sleep for 5 seconds sleep $(shuf -i 1-25 -n 1) # end time date +"%H:%M:%S"