Using srand() before rand() isn\'t necessary for PHP 4.2.0+. rand() also takes two parameters like this:
rand(min,max)
This code could be simplified to: print($random_text[rand(0,count($random_text) - 1)]);