View Single Post
# 19 25-08-2003 , 10:24 PM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
this one selects a random element from an array

proc int selectRandArrayVal(string $arr[])

{
int $randomInt = floor(rand(size($arr)))+1;
return $randomInt ;
}

user added image

Cool thread btw

Alan


Technical Director - Framestore

Currently working on: Your Highness

IMDB