Create an array of the commands you would like to be executed randomly.
Set a timed task that will be executed every 10-20 seconds.
Get a random number between 0 and the size of your commands array.
Use that number as the index of the commands array.
=> You have a random command.