Research Article

New Statistical Randomness Tests Based on Length of Runs

Algorithm 3

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