test rng with 1 million iterations