Question

Can someone help me to solve it by Matlab?

) Many dice games use two 6-sided dice, where each side faces up with equal probability, each turn consists of rolling both d

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program: dice.m

rolls = randi( 6, 3600, 2);   % generating die roll values 3600 samples and 2 dice.

outcome = rolls( : , 1 ) + rolls( : , 2 ) ; % getting outcomes by adding 2 die values.

hist(outcome,11,100);   %displaying histogram 11 bins and 100 represent percentage.

Output:

20 15 10 5 0 4 10 12

Output may change for each execution because die rolls are random.

Add a comment
Know the answer?
Add Answer to:
Can someone help me to solve it by Matlab? ) Many dice games use two 6-sided...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In a certain board game, a player rolls two fair six-sided dice until the player rolls...

    In a certain board game, a player rolls two fair six-sided dice until the player rolls doubles (where the value on each die is the same). The probability of rolling doubles with one roll of two fair six-sided dice is 16

  • Problem 9 A single game of craps (a dice game) consists of at most two rolls...

    Problem 9 A single game of craps (a dice game) consists of at most two rolls of a pair of six sided dice. The ways to win are as follows: Win-the first roll of the pair of dice sums to either 7 or 1 (you win, game over, no second roll Win the first roll of the pair of dice does NOT sum to either 7 or 1 but the sum of the second roll is equal to the sum...

  • This problem investigates how you can use random numbers to simulate a computer dice game write a function called twooice that simulates the rolling of two sik-sided dice. The function takes no input...

    This problem investigates how you can use random numbers to simulate a computer dice game write a function called twooice that simulates the rolling of two sik-sided dice. The function takes no inputs. Instead, it generates two random integers between 1 and 6, and output their sum. You may submit your work as many times as you want Try to get 100%) Your Function MATLAB Documentation Reset Code to call your function C Reset 1s-tuoDice ss-twoDice This problem investigates how...

  • Write a Complete Java program for the following specification: One of the most popular games of...

    Write a Complete Java program for the following specification: One of the most popular games of chance is a dice game known as “craps,” which is played in casinos and back alleys throughout the world. The rules of the game are straightforward: A player rolls two dice. Each die has six faces. These faces contain 1, 2,3,4,5, and 6 spots. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If...

  • 1. Sheila has two six-sided dice- one is purple and the other is blue. She rolls...

    1. Sheila has two six-sided dice- one is purple and the other is blue. She rolls both dice and observes the following outcome-if the purple die is 5 and the blue is 1 I might use the Y5G1 to denote the observation. A. How many outcomes come up doubles- both dice have the same number? B. How many possible outcomes are there for this observation? C. Find the probability that my observation is doubles. What contextual assumption do you need...

  • help please Consider the probability experiment of rolling two 6-sided dice, and the associated random variable...

    help please Consider the probability experiment of rolling two 6-sided dice, and the associated random variable X = sum of the two dice. () (3 points) See the OpenLab poet which includes the sample space for this experiment, and gives part of the proba bility distribution of Complete the exercise by filling in this table to get the full probability distribution of X Sum of the two dice, Outcomes in the event (X=;} Probability PCX-23) 1/36 = 0.0278 3 {(1,2),...

  • Simulate rolling two, fair, six-sided dice 10000 times and adding the "up" faces together each time...

    Simulate rolling two, fair, six-sided dice 10000 times and adding the "up" faces together each time using the "Dice Generator." Plot a relative frequency histogram of the results. Please note that your data will be randomly generated; therefore, select the answer below that is most similar to the histogram that you generated from your random data. If this is challenging, consider all four simulation questions in this assignment at the same time and look for the expected pattern in the...

  • The game of Pig is a simple two-player dice game in which the first player to...

    The game of Pig is a simple two-player dice game in which the first player to reach 100 or more points wins. Players take turns. On each turn, a player rolls a six-sided die: If the player rolls a 1, then the player gets no new points and it becomes the other player’s turn. If the player rolls 2 through 6, then he or she can either ROLL AGAIN or HOLD:      At this point, the sum of all rolls...

  • 8.7 Naval Battle Analysis In the game Axis & Allies, the outcome of a two-sided naval...

    8.7 Naval Battle Analysis In the game Axis & Allies, the outcome of a two-sided naval battle is decided by repeated rolling of dice. Until all ships on at least one side are destroyed, each side rolls one (six-sided) die for each of its existing ships. The die rolls determine casualties inflicted on the opponent; these casualties are removed from play and cannot fire (roll) in subsequent rounds. There are two types of ships: battleships and destroyers. For a battleship,...

  • 2. Let's now use Excel to simulate rolling two 6-sided dice and finding the minimum of...

    2. Let's now use Excel to simulate rolling two 6-sided dice and finding the minimum of both dice. • Create a new Excel sheet in your document. Click on cell Al, then click on the function icon f. and select Math&Trig, then select RANDBETWEEN. In the dialog box, enter 1 for bottom and enter 6 for top. • After getting the random number in the first cell, click and hold down the mouse button to drag the lower right corner...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT