Consider a uniform distribution created by a random number generator. The distribution looks like a square with a length of 1 and a height of 1. The random number generator creates any number between 0 and 1. Find the following probabilities:
a) P(0 <= X <= 0.4)
b) P(0.4 <= X <= 1)
c) P(X > 0.6)
d) P(X <= 0.6)
e) P(0.23 <= X <= 0.76)
The rigorous way to do this would be to compute a few integrals, but less work is usually better. Each of these probabilities correspond to the areas of rectangles. Each rectangle will have a height of 1, and the probability of interest will tell you everything you need to know about their lengths.