Nov-07-2016, 08:08 PM
OK, from the top, here's all the relevant stuff.
import random def rollDsix(): number = random.randint(1, 6) return number def generateAbilityScores(): i = 0 j = 0 scores = [] pool = [] while i < 6: while j < 4: roll = rollDsix() scores.append(roll) j += 1 scores.sort() del scores[0] total = scores[0] + scores[1] + scores[2] pool.append(total) i += 1Again, this section is supposed to "roll" 4 six-sided dice, remove the lowest score and add up the remaining 3 values and store that value. I want it to repeat this process 6 times.