fix for random int -> float error