```py import random def roll(dice: int, sides: int): return sum(random.randint(1, sides) for _ in range(dice)) class player_character: def __init__(self, Name, Race, Class): self.Name = Name self.Race = Race self.Class = Class self.Str = roll(3, 4) self.Dex = roll(3, 4) self.Con = roll(3, 4) self.Int = roll(3, 4) self.Wis = roll(3, 4) self.Cha = roll(3, 4) def details(self): print('Here is ' + self.Name + ', a ' + self.Race + ' ' + self.Class + ' of low reknown.') print(self.Name + ' has the following statistics:') print(' STR: ' + str(self.Str) + ' DEX: ' + str(self.Dex) + ' CON: ' + str(self.Con) + ' INT: ' + str(self.Int) + ' WIS: ' + str(self.Wis) + ' CHA: ' + str(self.Cha)) Name = input('What is your name? ') Race = input('What is your race? ') Class = input('What is your class? ') Name = player_character(Name, Race, Class) Name.details() ```
```py random.randint(3, 12) ``` Why don't you do it that way? Why a loop without need