PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$sum is an array of 9 sums, i am trying to code things so that highest sum becomes $main, and if there is tie between two or more sums, then $main is selected randomly from the tying sums. the current code yields the highest scoring sum, but does not randomly break ties very well (if there is a tie). what do i need to add to break ties better? (currently the sum sooner or latter in the array gets selected when there is a tie, which means middle tieing numbers are never selected)