“Don’t even know whose bed I’m in…”
The (pseudo)code below generates a number of points in a plane or, simply put, a picture:
Goals = [(0, 0), (1, 0), (0.5, sqrt(3)/2)];
curr = random(Goals);
for i = 1:N
dest = random(Goals);
next = 1/2 * (curr + dest);
curr = next;
The process is defined by a set of goals (Goals), a single rule (move half-way (1/2) to a chosen goal) and chance (random()). Can you predict how the picture of N points will look?