Hoist the float conversion out of the inner loop. (GH-10430)



Currently, the *n* and *total* variables get converted to floats each time they are multiplied by random().  This minor tweak does the conversion just once and gets a small speedup (approx 3%).
1 file changed