%This script-M-file is a solution to exercise 3 in Eriksen og Lauritzen (2004).
%Answers are held in  a, b og c
x=30+0.05*normrnd(0,1,4,10000000);
y=min(x);
z=max(x);
a=sum(y>30)
b=sum(z<29.9)
c=10000000-sum(z<30.15)
