% Random dots in n concentric circles

n= 5;

% Set up figure window
close all;  figure(1);  axis('equal');  axis([-n n -n n])
hold on

% Generate dots
for r= 1:n
    % in area between circles with radii r and (r-1)
    for count= 1:200
        theta= randDouble(0, 360);
        radius= randDouble(r-1, r);
        [x, y]= polar2xy(radius, theta);
        drawColorDot(x, y, mod(r,2));
        pause(0.05);
    end
end

hold off
