Question: use freemat or matlab for following problem Many games require the player to roll two dice. The number on each die can vary from 1
use freemat or matlab for following problem
Many games require the player to roll two dice. The number on each die can vary from 1 to 6. (a) Use the rand function in combination with a rounding function to create a simulation of one roll of one die. (b) Use your results from part (a) to create a simulation of the value rolled with a second die. (c) Add your two results to create a value representing the total rolled during each turn.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
