I wonder how the random.normalvariate function works. When I do the method below, I end up with negative numbers. I don't want that. How do I prevent that?
And also, i want 10 numbers, but it always turn out 9 and a "none". What is none? How can i remove it?
CODE:
i
mport random
resultat = [random.normalvariate(self.my, self.sigma) for i in range(0,9)]
print resultat