We address the problem of detecting deviations of binary sequence from randomness,which is very important for random number (RNG) and pseudorandom number generators (PRNG). Namely, we consider a null hypothesis that a given bit sequence is generated by Bernoulli source with equal probabilities...