Hi all, in a program I have to generate a random number using the Normal distribution, the algorithm found online, but I'd like to help us understand complemtamente the theoretical foundation behind it: Let's see:

The random number is generated by a normal distribution, which receives the parameters

and

, in my case

, and

. The code is as follows:

In this part:

**xNORMAL = mu + sigma * NORMAL01**, I understand that what they do is to clear the typing X given by:

But I have no clear rationale behind this calculation:

I guess it is to find the value of the random variable on an integration of the density function that appears in this link:

Normal distribution - Wikipedia, the free encyclopedia
Whose limits in this case would be Ln (Rnd), is this how I think?

But why the function is expressed in terms of Sin (x)?. Perhaps using Fourier transform?

Thank you if you help me solve these questions.

A greeting.

Dogod.