The polar method can be used to generate normally distributed random number in the range 0 to 1. It involves first generating two uniform random numbers r1 and r2. Then if the expression for d below is ≥1 two normally distributed random numbers can be computed as n1 and n2. That is,
Use these expressions to generate normally distributed random numbers.