Added check to see if $chance is a numeric value