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
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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
