choosing random numbers with weights/probability?

Darrell news at dorb.com
Tue Jun 22 03:51:52 CEST 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