Research Article

New Statistical Randomness Tests Based on Length of Runs

Algorithm 2

Calculating Pr for .
, , , .
while    do
while    do
  while    do
   
   
  end while
  
end while
end while
return