Random Golf of the Day #2: Numbers from a Normal Distribution
R, 68 bytes



function(S,N){set.seed(S);sqrt(-2*log(runif(N)))*cos(2*pi*runif(N))}


This uses the runif() function, which generates random deviates from a uniform distribution. The seed for the random number generation is specified using set.seed(), which by default uses the Mersenne-Twister algorithm with a period of 2^19937-1.

The result is an R vector of length N containing the computed standard normal deviates.

This uses the Box-Muller method: For two independent uniform random variables U and V,