Die Function 2

Write a program 10-DieFunction2 that has a function in it called roll(sides). That function calculates a random number from 1-sides and returns it to the script where it can be printed out.

Instructions

The main part of the script should just call the roll(sides) function several times so we can see the random dice rolls produced.

Sample output:

Let's roll a 6-sided die!
2
6
5
5
1
Let's roll a twenty-sided die!
6
13
18
14
13

Finishing Up

Once your program is working correctly, use your mouse to click-drag over the URL address for your project at the top of the browser window. Copy that link, and give that copied link to the instructor using the procedure given in class.