10.7 Challenege Problems

1. Write a function that generates random numbers that follow a gaussian distribution for an arbitrary mean and standard deviation. Verify the routine.

2. Use the subroutine to simulate the system described below. A production process consists of two machines. The first machine takes 3 minutes for an operation with a standard deviation of 10 seconds. The second machine takes 4 minutes with a standard deviation of 15 seconds. If the first machine finishes before the second machine, it will have to wait for the second machine to finish before the job moves on. Use Monte Carlo simulation to estimate the average cycle time.