Research Article

True Random Number Generation from Bioelectrical and Physical Signals

Algorithm 2

Sampler procedure.
Set the initial value: a1=0.2, r=3.91, c1=0
for  i=1 to n
ai+1=air(1- ai)// ai between 0-1
if  ai ≥ 0.5  then
ci=1
else
ci=0
end if
end
j=1
for  i=1 to n
if  ci==1  then
dj= bi //dj: sampled number
j=j+1
end if
end