You are not using split().
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
It does not appear that you are using physical dimensions, since there are no numbers < 11, but this will print 5 random combinations.
import random
shapes = ['square', 'triangle', 'circle', 'left']
physical = range(1, 11)
angles = range(10, 91, 10)
print " shape phy angle"
for j in range(5):
print "%10s %2d %2d" % (random.choice(shapes), \
random.choice(physical), random.choice(angles))
woooee
Nearly a Posting Maven
2,454 posts since Dec 2006
Reputation Points: 777
Solved Threads: 714