replaced standard normal distribution random number generator to avoid statistical toolbox use