Question: Write a function roll _ 2 _ dice which generates a simulation ( with a specified seed ) of two dice, take sum of them,
Write a function rolldice which generates a simulation with a specified seed of two dice, take sum of them, and return sum in a row vector
Inputs: N seed
Output: d which is N vector
Example:
d rolldice
Here N It means roll dice onceN and sum lets say will be returned in a row vector
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
