Research Article

New Statistical Randomness Tests Based on Length of Runs

Algorithm 7

Generation of biased sequence .
Let be the outputs of a random number
generator and for
while    do
if    then
  
else
  
end if
end while
return