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

  Use the best-response approach to find all nash equilibria

Player 1 has the following set of strategies {A1;A2;A3;A4}; player 2’s set of strategies are {B1;B2;B3;B4}. Use the best-response approach to find all Nash equilibria.

  A supplier and a buyer, who are both risk neutral

A supplier and a buyer, who are both risk neutral, play the following game,  The buyer’s payoff is q^'-s^', and the supplier’s payoff is s^'-C(q^'), where C() is a strictly convex cost function with C(0)=C’(0)=0. These payoffs are commonly known.

  Pertaining to the matrix game theory problem

Pertaining to the matrix need simple and short answers, Find  (a) the strategies of the firm (b) where will the firm end up in the matrix equilibrium (c) whether the firm face the prisoner’s dilemma.

  Nash equilibria

Consider the two-period repeated game in which this stage game is played twice and the repeated-game payo s are simply the sum of the payo s in each of the two periods.

  Find the nash equilibrium

Two players, Ben and Diana, can choose strategy X or Y. If both Ben and Diana choose strategy X, every earns a payoff of $1000.

  Construct the payoff matrix for the game

The market for olive oil in new York City is controlled by 2-families, Sopranos and Contraltos. Both families will ruthlessly eliminate any other family that attempts to enter New York City olive oil market.

  Question about nash equilibrium

Following is a payoff matrix for Intel and AMD. In each cell, 1st number refers to AMD's profit, while second is Intel's.

  Finding the nash equilibrium

Determine the solution to the given advertising decision game between Coke and Pepsi, assuming the companies act independently.

  Nash equilibria to determine the best strategy

Little Kona is a small coffee corporation that is planning entering a market dominated through Big Brew. Each corporation's profit depends on whether Little Kona enters and whether Big Brew sets a high price or a low price.

  Creating a payoff table

Suppose you and your classmate are assigned a project on which you will earn one combined grade. You each wish to receive a good grade, but you also want to avoid hard work.

  Determine the nash equilibrium for trade policy

Consider trade relations in the United State and Mexico. Suppose that leaders of two countries believe the payoffs to alternative trade policies are as follows:

  Find the nash equilibrium outcomes

Use the given payoff matrix for a simultaneous move one shot game to answer the accompanying questions.

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