1. randint.py

import random dice = random.randint(1,6) print(dice)

2. rand decimal.py

import random decimal = random.uniform(0,1) print(decimal)

3. rounding.py

import random percent = random.uniform(0,100) #round percent to 2 decimal places: rounded = round(percent, 2) print(rounded)

4. random choice.py

import random population = ["TEN", "JACK", "QUEEN", "KING", "ACE"] card = random.choice(population) print(card)

5. random sample.py

import random population = [1,2,3,4,5,6,7,8,9] sample_of_three = random.sample(population, 3) #print list: print(sample_of_three) #print each element in list: for each in sample_of_three: print(each)

- Generate a random number between 2 and 21.
- write a program that outputs the roles of 2 dice.
**Challenge**: Sum the total of the two dice (so this could be used in monopoly). - write a program that inputs a whole, positive integer number, then generates a random number between 1 and the number inputted (display this to the screen)
- Write a program that generates 2 random numbers between 1 and 10, and then finds the product of these 2 numbers. Your program should produce output that looks something like this, but with random numbers each time:

`Number one: 5 Number two: 7 Product: 35`