Use mixed congruential method to generate three sequences of five two-digit random integers with xo,1= 37,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use mixed congruential method to generate three sequences of five two-digit random integers with xo,1= 37, X0,2= 39, xo,3= 41, a= 9, and c= 35. Hint: 1. The sequences - as you have three starting points you automatically have three squences with the same parameters. Hint 2: Try the easiest m options 10, 100, 1000 to see which one will give you two-digit random integer (not decimal) [and you only need to produce five for each sequence]. If you cannot achive with these easy ones at least you will have an idea about how to chose an m for haveing a two dgit answer... Use mixed congruential method to generate three sequences of five two-digit random integers with xo,1= 37, X0,2= 39, xo,3= 41, a= 9, and c= 35. Hint: 1. The sequences - as you have three starting points you automatically have three squences with the same parameters. Hint 2: Try the easiest m options 10, 100, 1000 to see which one will give you two-digit random integer (not decimal) [and you only need to produce five for each sequence]. If you cannot achive with these easy ones at least you will have an idea about how to chose an m for haveing a two dgit answer...
Expert Answer:
Related Book For
Introduction to Operations Research
ISBN: 978-1259162985
10th edition
Authors: Frederick S. Hillier, Gerald J. Lieberman
Posted Date:
Students also viewed these mathematics questions
-
Suppose that the widget market consists of three equally efficient sellers, each with a marginal cost of $1. a. Assume that competition is well described by the "pure" Bertrand model. If two of these...
-
Adjustments and additional information 1. According to stocktaking done on 28 February 2022, the following were on hand: 1.1 Trading inventory R240 000 1.2 Stationery R6 000. 2. A debtor who was...
-
Use the mixed congruential method to generate the following sequences of random numbers. (a) A sequence of 10 one-digit random integer numbers such that xn + 1 (xn + 3) (modulo 10) and x0 = 2 (b) A...
-
Some economists argue that Inflation numbers calculated by CPI are not accurate especially during the pandemic. Explain why do they believe inflation numbers are not that accurate during pandemic?
-
Suppose a fair die is tossed three times. Let X be the largest of the three faces that appear. Find pX (k).
-
Deangelo Companys internal controls over cash disbursements provide for the treasurer to sign checks imprinted by a check-writing machine in indelible ink after comparing the check with the approved...
-
Pentamedia owns 90 percent of Sesa. At the start of 2016, Sesa sold buildings carried at \($4,000,000\), net, to Pentamedia for \($6,000,000\). The buildings had a remaining life of 10 years and...
-
(Comprehensive Bond Problem) In each of the following independent cases the company closes its books on December 31. 1. Sanford Co. sells $500,000 of 10% bonds on March 1, 2010. The bonds pay...
-
Tool Manufacturing has an expected EBIT of $71,000 in perpetuity and a tax rate of 23 percent. The company has $127,000 in outstanding debt at an interest rate of 6.8 percent and its unlevered cost...
-
You have been assigned to analyze the year-end inventory of Dynomil Company. This company sells three items of inventory and tracks of the average purchase cost and average selling price each month....
-
Dynamic oscillations involving widely varied airspeed, pitch, and altitude readings, but nearly a constant AOA are referred to as: A. Short-period mode B. Stick-fixed mode C. Phugoid mode D....
-
3. Using Excel (or Google sheets), calculate the average and standard deviation of the Virtual Lab and the Real-Life Lab data. You should report your calculated values as "Avg StDev" (don't forget...
-
Look at the Stella diagram below (questions no. 1 to 4). If you think the depiction of this diagram is not correct, please correct it as necessary so that this model is logical, but if it is, if it...
-
Substitute all known quantities. Solve for x substituting the normal force found in part (b). Exercise 8.3 -(78.3 kg)(9.80 m/s)(1.85 m + x) + (54.6 kg)(9.80 m/s)(0) - (11.5 kg)(9.80 m/s)(1.85 m) +...
-
On March 1, 2023, VisionTech Inc.'s board of directors declared a 5% share dividend when the market price per share was $28.00. On November 15, 2023, the board of directors declared a 4:1 share...
-
Question 3 Consider an interface between air ( = 1) and a dielectric medium with = 4. An incident plane wave of the phasor form: - (+258 +18- 1 --/22 ) e is impinging upon the dielectric (occupying...
-
6. Assume that Paris uses the cost method to account for its investment in Sun. What is the balance of "Investment in Subsidiary- Sun" at the end of 2016 in Paris books? a. $600,000 b. $648,0...
-
If a and b are positive numbers, find the maximum value of f ( x ) = x a (9 x ) b on the interval 0 x 9.
-
Consider the three-variable linear programming problem shown in Fig. 5.2. (a) Explain in geometric terms why the set of solutions satisfying any individual constraint is a convex set, as defined in...
-
Follow the instructions of Prob. 25.4-1 when using the following network. (a) Find all the minimal paths and cuts. (b) Compute the exact system reliability, and evaluate it when pi = p = 0.90. (c)...
-
Consider the Northern Airplane Co. production scheduling problem presented in Sec. 9.1 (see Table 9.7). Formulate this problem as a general linear programming problem by letting the decision...
-
Some liabilities are reported at their maturity amount. In general, when should liabilities, prior to the maturity date, be reported at less than their maturity amount?
-
In evaluating a balance sheet, some creditors say the liability section is one of the most important sections. What are some reasons justifying this position?
-
Compute the present value of a \(\$ 10,000\), one-year note payable that specifies no interest, although \(10 \%\) would be a realistic rate. Is the present value less than, greater than, or equal to...
Study smarter with the SolutionInn App