Question

In: Computer Science

Why are random numbers generated with linear congruential methods not truly random? Describe the properties of...

Why are random numbers generated with linear congruential methods not truly random? Describe
the properties of the sequence of numbers these types of methods will produce.

Solutions

Expert Solution

A linear congruential generator (LCG) is an algorithm that produces a series of pseudo-randomized numbers calculated using a linear discontinuous linear equation. The technique reflects one of the oldest and best-known pseudorandom number generator algorithms. The concept behind them is comparatively simple to comprehend, and they are readily applied and quick, particularly on computer hardware that can provide storage-bit truncation modulo arithmetic.

The generator is defined by recurrence relation:

Xn+1 = a (Xn + d) mod m

where {\displaystyle X}X is the sequence of pseudorandom values, and

{\displaystyle m,\,0<m}m, 0 < m — the "modulus"

a,{\displaystyle a,\,0<a<m} 0 < a < m— the "multiplier"

d, 0 ≤ d < m{\displaystyle c,\,0\leq c<m} — the "increment"

{\displaystyle X_{0},\,0\leq X_{0}<m}X0, 0 ≤ X0 < m — the "seed" or "start value"

As we can see the method of generation is already known and we can predict the whole sequence if we know d, m and X0 therefore random numbers generated by LCG are not random.

Properties of Numbers generated by LCG

  • Uncorrelated sequences – The sequences of random numbers should be serially uncorrelated
  • Long-term – The generator should be long-term (ideally, the generator should not repeat; practically, repetition should only occur after a very large set of random numbers has been generated).
  • Uniformity–The random number sequence should be consistent and unbiased. That is, equal random number fractions should drop into equal space'' fields.'' E.g. If random figures are to be produced on [0, 1), it would be bad practice to drop to [0, 0.1) by more than half, assuming that the sample size is big enough.
  • Efficiency–It should be an effective generator. Low overhead computing massively parallel.

Related Solutions

What is truly elastic material? Is concrete truly elastic? If not, why? Describe the various stages...
What is truly elastic material? Is concrete truly elastic? If not, why? Describe the various stages of micro cracking when a concrete specimen is loaded to failure (please use sketches to explain the behavior and the micro cracking).
how would you use randomly generated numbers to find 30 random numbers from 1 to 500?
how would you use randomly generated numbers to find 30 random numbers from 1 to 500?
I am to write a code that uses two queues, and print the generated random numbers...
I am to write a code that uses two queues, and print the generated random numbers and content of both queues. I need to use the enqueue and dequeue functions in the code.  The instructions are below. Program should be in C Instructions: Generate n random numbers with values between 10 - 100. Note: n>9 if u write a function (for example, called generateRand) to do this - what is the data or input we have to give it? Create a...
360 random numbers are generated from the interval [0, 1]. Use Chebyshev’s inequality to find a...
360 random numbers are generated from the interval [0, 1]. Use Chebyshev’s inequality to find a lower bound for the probability that the sum of the numbers lies between 160 and 200.
Question: Describe the various methods of solving linear systems. With which method of solving linear systems...
Question: Describe the various methods of solving linear systems. With which method of solving linear systems are you most comfortable, and why? Hint: First, define a linear system, and give an example. Then, discuss the methods, and show the steps to solve your example. Finally, talk about advantages and drawbacks of each method. "Real-Life" Relationship: Any relationship where we have a fixed cost and variable cost can be represented by a linear equation. For instance, the cost of a rental...
I'd like to have 30 random numbers generated which are distributed a) exponentially b) uniform c)...
I'd like to have 30 random numbers generated which are distributed a) exponentially b) uniform c) normal d) binomial e) Poisson Would you please generate 30 random numbers regarding these distributions above, please? Mean=3 Variance is 2
Describe the inverse properties of real numbers and provide examples. What is useful about the inverse...
Describe the inverse properties of real numbers and provide examples. What is useful about the inverse properties of real numbers? Start with definitions for identity elements and then define additive and multiplicative inverses. Discuss why 0 and 1 are important in this context. Tell how and why we use inverses. What is an example of an operation and its "additive inverse" that you use in everyday life? ( for example walking one block north and then one block south, to...
1. Describe the difference between the properties numbers have in the nominal scale, ordinal scale, and...
1. Describe the difference between the properties numbers have in the nominal scale, ordinal scale, and ratio scale of measurement? 2. Describe the relation between scales of measurement and central tendency (mean, median, and mode?).   3. Discuss the advantages and disadvantages for the mean, median, and mode in representing a distribution of scores. 4. Describe the relation between scales of measurement and measures of variability (e.g., interquartile range and standard deviation.) 5. Discuss the advantages and disadvantages for the interquartile...
Is the computer capable of producing a truly random walk in a reasonable amount of time?
Is the computer capable of producing a truly random walk in a reasonable amount of time?
What are the conditions on the parameters for linear multistep methods so that the methods are...
What are the conditions on the parameters for linear multistep methods so that the methods are regular? Would appreciate a detailed explanation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT