Question: Create a function named MultiDice ( ) with inputs: ( a ) Seed: an integer seed for the random number generator ( b ) numTrials:
Create a function named MultiDice with inputs:
a Seed: an integer seed for the random number generator b numTrials: the number of times to roll dice
c numDice: the number of dice to roll
d numSides: the number of sides of each die
MultiDice should return a vector of length numTrials that contains the product of the val ues of the dice rolled in each trial.
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
