The exact runs test and some large sample approximations
computing the exact distribution of the number of runs
scientific article