A Sequential Test for Randomness of Intervals