Added test for randomness.