Node version of a set of tests for randomness