This post shows how to generate normally distributed random numbers from uniformly distributed random numbers using the Box-Muller transformation in Python.
Box-Muller Transformation with Numpy
glowingpython.blogspot.com