In a Python program, I need to generate normally-distributed random numbers with a specific, user-controlled variance. How can I do this?
Use random.normalvariate (or random.gauss if you don't need thread-safety), and set the sigma argument to the square root of the variance.
random.gauss
sigma