Smarter way of doing this?

Jim Jewett JimJJewett at yahoo.com
Mon Feb 2 18:54:35 EST 2004


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

> 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