Random numbers in Python

I run the following Python code:

1
2
3
4
5
import random
x = 0
for i in range(0, 100):
    x += random()
print(x)

What is the probability that a number greater than 45 will be printed?

×

Problem Loading...

Note Loading...

Set Loading...