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.
Merge pull request #7 from klittlepage/rand-fix

Random doubles inadvertently rounded to zero