- /
-
Untouchable Zones
on 6 Oct 2022
- 1
- 9
- 1
- 0
- 277
N=5^9
v=zeros(N,2);
a=6;rng(2^8);
c=[[1,1];[1,0];[0,1];[0, 0];[0.5,0];[0.5,1]];
plot(c(:,1),c(:,2),'.r');
p=[0,0];
lc=1;
for i=1:N
idx = randi(a);
while idx==(mod(lc+1,a)+1)
idx = randi(a);
end
lc=idx;
s=c(idx,:);
p=(p+s)/2;
v(i,:)=p;
end
plot(v(:,1),v(:,2),'.b',markersize=3)
xlim([0,1])
ylim([0,1])
axis off