m = 10000
n = 10

p = zeros(m,1);

for i = 1:m
  x = randn(n,1);
  [~,p(i)] = ttest(x,0);
end
hist(p,50)