The Wald-Wolfowitz runs test is a non-parametric statistical test that checks for randomness of the boolean data sequence Data. The function returns the corresponding p-value.

Please note that the RunsTest algorithm uses the exact calculation of the probability p for group sizes less than 26 (this means that neither the count of TRUE bytes nor the count of FALSE bytes in the Data field exceeds 25), otherwise it approximates the p value in order to avoid numeric overflow.