View Single Post
Old 06-15-2008, 04:40 PM  
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
use array_rand()

say you have $pick = array('integerA', 'integerB', 'integerC');
then use with your $dic = array(
'integer1'=>array_rand($pick),
'integer2'=>array_rand($pick),
...
);

hope this helps
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote