function x = rollthedie(n, m)
% return a vector with the result of rolling a die 
% with m eyes n times
x = randi( [1, m], n, 1 );
end