Adding IF statement to function causes RANDOM(3) to always return "2"?