in reply to Challenge: Detecting sequences.

The NIST page on statistical tests for randomness might be a good place to start.
Just another Perler interested in Algol Programming.