Fix random float

Using a modulo was adding a bias in the probability distribution.
It is better do divide by a double instead.
ignore Mac OS X .DS_Store