Here is how you do it: 
$pictures = array( 1, 2, 3, 4, 5, 6, 7, etc.) 
shuffle($pictures)   //This will randomly rearrange them in the array. 
echo "$pictures[1]
echo $pictures[2]
echo $pictures[3]";

  Dave Carrera <[EMAIL PROTECTED]> wrote: Hi All

I have a fuctioning array of about 20 items.
What i would like to do is display 3 items from the array randomly and be
able to place the output anywhere on the screen.

I have looked at array_rand and associated functions at and are
currently playing with the code to see if i can make it work but some
guidence in this matter would be very much appreciated.

Thank you in advance

Dave C

PHP Database Mailing List (
To unsubscribe, visit:

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

Reply via email to