Thursday, September 03, 2009

randomise cubes


file(f=True, new=True); # new file
i=0
n = 10
while i< n:
size = random.uniform(0.1, 5)
names = polyCube(o=True, w=size, h=size, d=size)
cube = names[0]
move(random.uniform(-5, 5),
random.uniform(-5, 5),
random.uniform(-5, 5), cube, r=True)
i = i+1


No comments: