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)];
?>