Random number generation for the generalized normal distribution using the modified adaptive rejection method