I will put all the messages into a text file called cookie.txt and play it with
play -cr cookie.txt 2000
which will do the same thing without the need for $rand() and timers.