3. Define AmodB as the remainder when A is divided by B. For example, 36mod25 = 11....

Question:

3. Define AmodB as the remainder when A is divided by B. For example, 36mod25 = 11. Excel has this function;

it is written Mod(A,B). Now here is another random-number generator:

a. Let X0 = 1.

b. Let Xn+1 = (7*Xn)mod108

c. Let Un+1 = Xn+1/108.

The list of numbers U1, U2, ... contains the pseudo-random numbers generated by this random-number generator. (This is one of the many random-number generators given in Abramowitz and Stegun, 1972.) Use VBA to produce this random-number generator, and use it in a program similar to uniformrandom.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Financial Modeling

ISBN: 9780262024822

2nd Edition

Authors: Simon Benninga

Question Posted: