Properly compute noise values.

This gives you a noise distribution between -1.0 and 1.0, as it should be.
Merge pull request #1 from padenot/patch-1

Properly compute noise values.