View Single Post
Old 12-09-2004, 03:09 AM  
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by BlueQuartz
would take no more than two minutes to find this on google
The script above works, if the fix is considered. But it isn't very efficient.

I should have done this sooner, sorry:

<?
$element[]="blablabla";
$element[]="blablablabla";
$element[]="blablablablabla";
mt_srand((double)microtime()*1000000);
echo $element[mt_rand(0,count($element)-1)];
?>
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote