Question

Linear Congruence Generator Below is a generator desigred to simulate rolling a six sided de (d6). Note: the +1 is to adjust

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

According to rules and regulations, we are allow to do only one question at a time..so I do only 5th ..you post 6th again so that I will able to help you..

Any problem in answer then comment below.. I will help you

Add a comment
Know the answer?
Add Answer to:
Linear Congruence Generator Below is a generator desigred to simulate rolling a six sided de (d6)....
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
  • Question 3 3 pts Matching problem [Choose] You roll a fair six-sided die 500 times and...

    Question 3 3 pts Matching problem [Choose] You roll a fair six-sided die 500 times and observe a 3 on 90 of the 500 rolls. You estimate the probability of rolling a 3 to be 0.18 Choose) You roll a fair six-sided die 10 times and observe a 3 on all 10 rolls. You bet the probability of rolling a 3 on the next rollis close to O since you have already had 10 3's in a row You assign...

  • i. Consider a weighted 6-sided die that is twice as likely to produce any even outcome...

    i. Consider a weighted 6-sided die that is twice as likely to produce any even outcome as any odd outcome. What is the expected value of 1 roll of this die? What is the expected value of the sum of 9 rolls of this die? ii. Let X denote the value of the sum of 10 rolls of an unweighted 6-sided die. What is Pr(X = 0 mod 6)? (Hint: it is sufficient to consider just the last roll) *side...

  • i. Consider a weighted 6-sided biased die that is twice as likely to produce any even...

    i. Consider a weighted 6-sided biased die that is twice as likely to produce any even outcome as any odd outcome. What is the expected value of 1 roll of this die? What is the expected value of the sum of 9 rolls of this die? ii. Let X denote the value of the sum of 10 rolls of an unweighted 6-sided die. What is Pr(X = 0 mod 6)? (Hint: it is sufficient to consider just the last roll)...

  • Write a C PROGRAM that will simulate rolling a die. When rolling a die, one will...

    Write a C PROGRAM that will simulate rolling a die. When rolling a die, one will get a die face value of 1-6. We can use rand function and math ceiling function to get a random number of 1-6 generated. The program will simulating rolling 5 dice simultaneously and store their face values into an array of size 5. The program will keep rolling the dice and print the following: 1. All face values in one line 2. If any...

  • PYTHON: Dice Rolling Write a script that takes input for the number of dice to roll...

    PYTHON: Dice Rolling Write a script that takes input for the number of dice to roll and for the number of sides for the dice. Roll that many n-sided dice and store the values an array. Take the number of sides of the dice and the number of dice as typed inputs from the user. Output should be a comma separated list of the die numbers with no spaces like this: 6,4,1,3,1 Write a script that will simulate the roll...

  • 6. Assume you have a typical 6-sided die. That is to say, it has sides 1,...

    6. Assume you have a typical 6-sided die. That is to say, it has sides 1, 2, 3, 4, 5, 6 and each side has probability of of occurring. You are to roll the die twice, and record the maximum, M, of the two rolls. If you roll a 2 and a 3 (or a 3 and a 2), then M 3. If you roll a 4 and a 4, then M-4 6 (a) Derive the probability mass function of...

  • The Dice game of "Pig" can be played with the following rules. 1. Roll two six-sided dice. Add the face values...

    The Dice game of "Pig" can be played with the following rules. 1. Roll two six-sided dice. Add the face values together. 2. Choose whether to roll the dice again or pass the dice to your opponent. 3. If you pass, then you get to bank any points earned on your turn. Those points become permanent. If you roll again, then add your result to your previous score, but you run the risk of losing all points earned since your...

  • A die is a cube with dots on each face. The die 20 times faces have...

    A die is a cube with dots on each face. The die 20 times faces have 1, 2, 3, 4, 5, or 6 dots. The table below is a computer simulation (from the software package Minitab) of the results of rolling a fair 4, 5, or 6 d RoW c1 C2 C3 C4 CS C6 C7 C8 C9 c10 (e) Assume that each number in the table corresponds to Why? the number of dots on the upward face of the...

  • For questions 7 - 12, consider the experiment of rolling a six-sided die once and recording...

    For questions 7 - 12, consider the experiment of rolling a six-sided die once and recording the outcome. This is a standard die - each of the six sides of the die contains a different number from the set of numbers {1, 2, 3, 4, 5, 6}. 7. Define event A = {1, 2} and event B = {2, 4, 5}. What is A  B? (a) {1, 2, 4, 5} (b) {2} (c) {1, 2, 2, 4, 5} (d)...

  • 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
ADVERTISEMENT