#!/usr/bin/python from pylab import * x,y = 0,0 xs = [x] ys = [y] figure() show(False) for i in xrange(500): t = 2*pi*rand() x += sin(t) y += cos(t) xs.append(x) ys.append(y) cla() plot(xs,ys) draw()