MATLAB: I am not getting unique random numbers from henon map??please help in this

henon mappixel scrambling

my code is here
if true
% code
N=16;
a=1.4;
b=0.3;
x=zeros(1,N);
y=zeros(1,N);
x(1)=0.63154*(10^(-11));
y(1)=0.18906*(10^(-11));
for i=1:N
x(i+1)=1+y(i)-a*((x(i))^2);
y(i+1)=b*x(i);
end
plot(x,y)
for j=0:(N/2)-1
q(2*j+1)=x(j+1);
q(2*j+2)=y(j+1);
end
d=floor(q*(10^15));
s=mod(d,N);
end

Best Answer

Are you sure you have a problem with your code? I increased N to 16000, and plotted your data. It sure looks like a Hénon attractor to me.