for i = 1:100
bw = im2double(imread('clock.gif'));
imshow(bw);
hold on
long = 300
short = 200
r = rand()*(2*pi)
r1 = rand()*(2*pi)
a = 360+long*cos(r)
b = 350+long*sin(r)
a1 = 360+short*cos(r1)
b1 = 350+short*sin(r1)
lin = line([360 a],[350 b]);
set(lin,'LineWidth',10)
set(lin,'Color',[0 0 0])
slin = line([360 a1],[350 b1]);
set(slin,'LineWidth',10)
set(slin,'Color',[0.25 0.25 0.25])
%saveas(bw,i)
print('-djpeg',int2str(i))
%print -djpeg i
close all
end