Add an optional else to randomSwitch with percentages, close #1479