One sample runs test

The One sample runs test allows to check if a sequence of binary data is random or not. Run it in Excel using the XLSTAT add-on statistics software.