Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    \$\begingroup\$ You can save 1 byte by using from random import* and c=choice. \$\endgroup\$ Commented Aug 7, 2016 at 17:50
  • \$\begingroup\$ @daHugLenny - didn't now I could miss that white space before the *; ta! \$\endgroup\$ Commented Aug 7, 2016 at 18:20
  • 2
    \$\begingroup\$ Welcome to PPCG! Nice first post! \$\endgroup\$ Commented Aug 7, 2016 at 19:24
  • \$\begingroup\$ Thanks @GamrCorps - I have been meaning to do some for a while... now I have rep I can post a meaningful solution on a protected question... :D \$\endgroup\$ Commented Aug 7, 2016 at 19:37
  • 2
    \$\begingroup\$ Instead of having 3 spaces and then %d, use %4d instead and it'll pad it properly for you. You might be able to leverage it for other parts of the die as well. \$\endgroup\$ Commented Aug 8, 2016 at 11:32