I am trying to figure out a way to have a particular array item chosen a certain percentage of the time. So lets say:
$testArray = array('item1', 'item2', 'item3', 'item4', 'item5');
Now how would I go about having item1 chosen lets say 40% of the time. I know this is probably really easy but I can't seem to wrap my head around it today.