This repository has been archived on 2021-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
scientificComputing/statistics/exercises/rollthedie.m

6 lines
135 B
Matlab

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