Smarter way of doing this?

Jim Jewett JimJJewett at
Tue Feb 3 00:54:35 CET 2004

Max M <maxm at> wrote in message news:<401e4d57$0$295$edfadb0f at>...

> It takes a list of probabilities in the range 0.00-1.00, and it must 
> then randomly select one of the probabilities and return it's index.

You may wish to look at the GRADES example in the bisect documentation.

-jJ  Take only memories.  Leave not even footprints.

More information about the Python-list mailing list