Skip to main content
4 events
when toggle format what by license comment
Jul 31, 2017 at 14:10 comment added hjpotter92 @ravenrogue en.wikipedia.org/wiki/Snake_case and ROLLED = ... creates a dictionary with 1..6 as keys, and initialised to a value 0. The loop then increments each key based on the values generated by random.randint(1, 6).
Jul 31, 2017 at 13:30 comment added raven rogue Thank you for the comment. I am still confused, though, on what you mean by snake_cased. It would be great if you could clarify that. Additionally, I do not fully understand what this line of code does= ROLLED = {i: 0 for i in range(1, 7)}
Jul 31, 2017 at 12:53 comment added Phylogenesis I wouldn't say that manually seeding a PRNG is that important. Python uses "good enough" defaults for the seed.
Jul 31, 2017 at 12:06 history answered hjpotter92 CC BY-SA 3.0