Add second year

This commit is contained in:
2023-12-07 01:19:12 +00:00
parent 3291e5c79e
commit 3d12031ab8
1168 changed files with 431409 additions and 0 deletions

View File

@ -0,0 +1,7 @@
function d = roll_2_dice(N, seed)
% function to roll 2 dice and return the combination of each device row in a vector
rng(seed);
% generating two 1 * N vectors of 6 simulated dice rolls and adding them
d = randi([1 6], 1, N) + randi([1 6], 1, N);
end