Write a code to test a uniform pseudorandom number generator. If you do not have a canned

Question:

Write a code to test a uniform pseudorandom number generator. If you do not have a canned generator available, write a generator based on L'Ecuyer's recommended generator in Appendix I. Apply the following tests: average \(\langle xangle=1 / 2\), variance \(\left\langle x^{2}\rightangle-\langle xangle^{2}=1 / 12\), and the pair correlations test \(\left\langle x_{i+k} x_{i}\rightangle=1 / 4\) for \(k eq 0\). Generate a histogram of pairs of numbers on a two-dimensional unit square and test that the distribution is statistically uniform.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: