Corrected a casting issue in which random doubles were cast to int before multiplication by a scale factor, resulting in the double always being rounded to zero.