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