f(x)=(2*e^(-(x^2)/2))/ √(2π) if x ≤ 0 & f(x) = 0 if x > 0.

√= Square Root

π= Pi=3.141592

i dont know how generate this distribution and make after this a simulation in Stata for see His consistence, my primordial problem is with the distribution rather than the simulation.

Thank and im new in stata