All, we were talking about alternate methods of rolling up characters elsewhere and so I fixed mine to let you roll with a minimum on the die. It uses python 2 and should run on Windows as well.
Leitz
####
Leitz
####
Code:
#!/usr/bin/env python
import random
import argparse
parser = argparse.ArgumentParser(description="Deal with Options")
parser.add_argument('-m', action='store', type=int , dest='min_die_roll', help='Minimum Die Roll, single Die')
args = parser.parse_args()
min_die_roll = args.min_die_roll
def roller(n_die, min_die_roll=1):
result = 0
for x in xrange(n_die):
result += random.randint(min_die_roll,6)
return result
UPP = []
upp = ''
for y in xrange(6):
roll = "%X" % roller(2, min_die_roll)
UPP.append(roll)
upp = upp + UPP[y]
print "UPP: %s" % upp
Last edited: