Random sequence test