choosing random numbers with weights/probability?

Darrell news at dorb.com
Mon Jun 21 21:51:52 EDT 1999


Did a run of 100000. Looks like it works pretty well.

 Time: 5.33 sec
{'one': 24781, 'three': 50148, 'two': 25071}

--Darrell






More information about the Python-list mailing list