%Sample Nsample integers between 1 and 6. Find porportion that are 1 or 2
Nsample=1000000
sample=randi(6,[Nsample,1]);
f=find(sample<3);
part=length(f)/Nsample;
part
