function x = oneDie(n)
%oneDie.m Rolls a die, n repetitions

x = ceil(6*rand(1,n));

% Example:

% x = oneDie(10000);
% [y,xBins] = hist(x,1:6);
% bar(xBins,y/length(x))
% xlim([0,7]); ylim([0,0.2])

end

