Random number sequence testing code