Dice Thrower

Step 6 – combine step 4 and step 5

Now we can get the user to choose both how many dice and what type of die they want to throw.

So, if they want to throw two 20 sided dice (2d20) they can.

This combines steps 4 and 5, but you need to be careful.

  1. Again, it's probably a good idea to start with a new program
  2. Take care with the brackets and the indents
  3. Save your program
  4. Run the program to check that it works
  5. Make sure you run your program a few times using different options

This is pretty much doing the same sort of thing as the dice roller I use in Discord does.

Code helper image

That's a pretty solid dice roller produced.