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