Tests for RNG

This adds some of the statistical tests for a good RNG. They pass both in node and the browser. Note that, by definition, this tests will fail from time to time (otherwise the RNG would be bad), although they should not fail often.