Fill This Form To Receive Instant Help
Homework answers / question archive / a) Write a computer program using MATLAB to generate random numbers
a) Write a computer program using MATLAB to generate random numbers. Use your program to generate, say, 100,000 random numbers. How long did the computer take to generate the random numbers? Roughly how long does it take for the computer to generate a single random number?
b) Using a sample of the random numbers generated in part a, construct a plot of the correlation between successive random numbers (X_i on the x-axis and X_i+1 on the y-axis). Does your random number generator appear to produce random numbers?
c) Compute the mean and standard deviation of the random numbers generated in part a. How do they compare with the mean and standard deviation of a uniformly distributed variable on the range zero to one?