The source code is below:
from random import randint char_name = ['STR', 'DEX', 'END', 'INT', 'EDU', 'SOC', 'PSI'] char = [0,0,0,0,0,0,0] for i in range(len(char_name)): char[i] = randint(1,6) + randint(1,6) for i in range(len(char_name)): print '%s: %d' % (char_name[i], char[i])
I may do more such posts here in the future, now that I've recently learned how to properly post program code.
No comments:
Post a Comment