Answer:
a. Attached.
b. Mean = 0.5
Step-by-step explanation:
This random number generator con be modeled with an uniform continous random variable X that has values within 0 and 1, each with the same constant probability within this range.
The probability for the values within the interval [a,b] in a continous uniform distribution can be calculated as:
[tex]f(x)=\dfrac{1}{b-a}\;\;\;x\in[0; 1][/tex]
In this case, b=1 and a=0, so f(x)=1.
The sketched curve of the probability distribution of this random variable is attached.
The mean of this distribution can be calculated as the mean for any uniform distribution:
[tex]E(X)=\dfrac{a+b}{2}=\dfrac{0+1}{2}=0.5[/tex]