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

Question:

Write a code to test a Gaussian pseudorandom number generator. If you do not have a canned generator available, write a generator based on the Box-Muller algorithm in Appendix I. Apply the following tests: average \(\langle xangle=0\), variance \(\left\langle x^{2}\rightangle=1\), and the pair correlations test \(\left\langle x_{i+k} x_{i}\rightangle=0\) for \(k eq 0\). Generate a histogram of pairs of numbers in two dimensions and test that the distribution is statistically Gaussian.

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

Step by Step Answer:

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