i try to coding this Function using C#:

and I'm not sure of my code is correct to solve this Function
this is code i try to write as a method:
public double PDF()
{
// output variable
double result = 0.0;
// inputs
double Segma = 0.35;
double M = 14.45;
double x = 0.0;
Random rnd = new Random();
x = rnd.NextDouble();
double LeftBase = 1/(Math.Sqrt(2*Math.PI)*Segma*x);
double RightEx = (-1 * Math.Pow((Math.Log(x) - M), 2)) / (2 * (Math.Pow(Segma, 2)));
result= LeftBase * Math.Exp(RightEx);
return result;
}
and i try to test this method in for loop but it always return 0 value , i think the return value is Less than accommodate double variable
anyone help me to solve this problem and get the return value
Mu +/- 6 Sigmaor so. Even after taking theLog, you may be far from this range.