Hiya guys!
I have a function:
def GDD(num,P):
D=GeneralDiscreteDistribution(P)
D.reset_distribution()
L=[D.get_random_element() for _ in range(num)]
return L
and then commands
P=[0.5,0.33, 0.17]
L=GDD(num,P)
I am definitely not getting random distributions within my lists L (i.e.
the same lists repeat themselves much too often).
Am I not understanding something here?
Thanks for any help.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.