Check how good new random no generator generates numbers.

Assignment Help Game Theory
Reference no: EM13945030

Write a program to check out how good my new random number generator generates numbers. A good generator produces evenly distributed numbers over some range. determine how well these numbers are dispersed between 1 and 100.

generate 10,000 random numbers between 1 and 100 and count how many times each number is produced. From this test, the program is to produce several results.

a. Determine the average random number produced.

b. Determine which number(s) was generated the most often.
Need to know which random number was produced most often (the count) and if more than one, show all.

c. Determine which number(s) was generated the least often.
Need to know which random number was produced least often (the count) and if more than one, show all.

Restrictions:

Must use a link list to store data in order

Must use functions.

new random number generator is a follows:

seed = 73267217 ......starting value (first random number)

Generate the next random number using the previous random number (seed)

seed = abs( seed % 10000 + seed / 10000 ) * 732163
return seed; (newest random number)

Attachment:- randomnumberlist.zip

Reference no: EM13945030

Questions Cloud

Conduct a pest analysis for the organisation : Conduct a PEST Analysis for the organisation? Give four examples of external causes of change in an organisation. For each example give at least one potential impact.
Strength and weakness of orgasation delopment plan : Review a given organisation development plan. Analyse the streanth and weakness of this orgasation delopment plan and prepare written report of finding. Answer all qustion
Investigating the cost of maintaining patients : A business manager in a health-care facility has been investigating the cost of maintaining patients within its plan. A sample of 15 cases (different from those in WQ2) for the last month reported the following:
Which variable described in the article : Which variable (communication, discharge planning, or health literacy) described in the article would you address as the RN in planning the discharge for this patient? Why is this variable a priority for this patient
Check how good new random no generator generates numbers. : Write a program to check out how good my new random number generator generates numbers. A good generator produces evenly distributed numbers over some range. determine how well these numbers are dispersed between 1 and 100.
Determine the optimal shipments : Formulate the equations to determine the optimal shipments from each point of embarkation to each destination along this supply chain that will result in the minimum total shipment cost.
Difference between gross revenues and net revenues : Identify one of the two key principals used in accrual accounting and state an advantage and disadvantage?  What is the difference between gross revenues and net revenues? What is the difference between patient service revenue and other revenue
Process technology and e-business on an organisation : Your task is to critically discuss and evaluate the effect of process technology and e-business on an organisation of your choice. You should evaluate the effect on their logistical and operational capacity and capability.
Identify entities that relevant for a system to manage seamm : Identify the entities and relationships that are relevant for a system to manage SEAMM. Develop a data dictionary (catalogue) and create an E-R diagram.

Reviews

Write a Review

Game Theory Questions & Answers

  True mean shifts by one standard deviation

What are the lower and upper specifications limits (a, b) such that only 2.5% of the pistons ring would exceed the limits. What is the power of the test if the true mean shifts by one standard deviation?

  Is there any equilibrium in which no player uses a action

Finally profiles in which the winner obtains three or more votes more than the loser.) Is there any equilibrium in which no player uses a weakly dominated action?

  Explain why the implied promise is automatically credible

Explain why the threatened action is not automatically credible, given your payoff structure. Explain why the implied promise is automatically credible.

  Find the equilibrium when the two firms move simultaneously

Write down the payoff table for this game, and find the equilibrium when the two firms move simultaneously. Write down the game tree for this game, with Coke moving first and Pepsi following.

  Explain the logic behind as equilibrium action

Now consider the variant in which each player, on her turn, has the additional option of shooting into the air. Find the subgame perfect equilibria of this game when pA pB. Explain the logic behind A's equilibrium action.

  Download a shareware version of some commercial software.

Download a shareware version of some commercial software. Design a plan for converting the shareware version to a full version without paying one cent.

  Defective orders in a fast-food restaurant

Burger Doodle is a fast-food restaurant that processes an average of 680 food orders each day. The average cost of each order is $6.15. Four percent of the orders are incorrect, and only 10% of the defective orders can be corrected

  Test the claim when mean is less

A manufacturer makes ball bearings that are supposed to have a mean weight of 30 g. A retailer suspects that the mean weight is actually less than 30 g. The mean weight for a random sample of 16 ball bearings is 29.5 g. with a standard deviation o..

  What are the nash equilibria in pure strategies

Draw the table for this game. What are the Nash equilibria in pure strategies? Can one of the equilibria be a focal point? Which one? Why?

  Five-component system and three-component system

For what values of p is a 5-component system more likely to operate effectively than a 3-component system?

  Explain how payoff matrices used in game theory

Explain how payoff matrices used in Game Theory illustrate mutual interdependence among firms in oligopolies. How can they be used to predict likely outcomes?

  Find set of pure strategy symmetric nash equilibria of game

Find the set of pure strategy symmetric Nash equilibria of the game, and the set of pure evolutionarily stable strategies. What happens if each player has n actions, corresponding to demands of 1, 2, . . . , n units of payo? (and δ 1/n)?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd