Math Problem Statement

Practice using random numbers!

Import random.

Use what was taught in this lesson to do the following.

Print out a random float between 0 and 1.

Print out a random integer between 0 and 5.

Print out 3 random integers between 0 and 100. Make sure they appear as a list.

Solution

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Random Numbers
Probability

Formulas

random.random()
random.randint(a, b)
random.sample(range(a, b), n)

Theorems

-

Suitable Grade Level

Grades 5-7