Here's a simple python script to calculate/display any full wheel/system!
Note that this is just a quick hack code with no performance considerations.
Instructions for use follow....
Code:
#!/usr/bin/env python
# Generates combinations
import sys, time
def totalCombs(maxnum,numline):
fact = lambda n:n-1 + abs(n-1) and fact(n-1)*long(n) or 1
return ( fact(maxnum)/(fact(numline)*fact(maxnum-numline)) )
def xuniqueCombinations(items, n):
if n==0: yield []
else:
for i in xrange(len(items)):
for cc in xuniqueCombinations(items[i+1:],n-1):
yield [items[i]]+cc
def genCombs(maxnum,numline):
rg = range(1,maxnum+1)
for line in xuniqueCombinations(rg,numline):
print StringSequence(line)
def StringSequence(seq):
size = len(seq)
outText = ""
if size == 0:
pass
elif size == 1:
outText = str( seq[0] )
else:
outText = str( seq[0] )
for item in seq[1:]:
outText += " " + str( item )
return outText
def Usage(name):
print \
"""Generates combinations.
%s <Maximum Number> <Numbers per line> <output file>
Example:
%s 10 3 outfile.txt
"""%(name,name)
def Start(combs):
print "Starting for %d combinations"%(combs,)
def RunTime(total):
print "ENDED! Total runtime was %04d seconds."%(total,)
if __name__=='__main__':
if len(sys.argv) >= 1 and len(sys.argv)<3:
Usage(sys.argv[0])
elif len(sys.argv) == 3:
Start(totalCombs(int(sys.argv[1]),int(sys.argv[2])))
tstart = time.time()
genCombs(int(sys.argv[1]),int(sys.argv[2]))
RunTime( time.time() - tstart )
elif len(sys.argv) == 4:
Start(totalCombs(int(sys.argv[1]),int(sys.argv[2])))
try:
file1 = file(sys.argv[3],"wt")
except:
print "Impossible to open file"
else:
sys.stdout = file1
tstart = time.time()
genCombs(int(sys.argv[1]),int(sys.argv[2]))
ttotal = time.time() - tstart
sys.stdout = sys.__stdout__
file1.close()
RunTime(ttotal)
else:
Usage(sys.argv[0])
Note that this is just a quick hack code with no performance considerations.
Instructions for use follow....
Last edited:

longer to run your code compared to you
for you to try
...
?...
use... ...I've got things like Norton Utilities and even Norton AntiVirus installed... ...I run them when I need/want to... ...a little bit of regedit
... ...most users who know nothing more beyond moving a mouse around tend to do nothing more than waste my time