[Prev][Next][Index][Thread]

A85: Probability




Is there a routine to generate numbers according to probability?
For example, say I want to generate numbers 1-5, but with 5 having a 50%

chance of being picked, 1 --> 20% chance, 2 -->10% , etc...

Albert Chang




Follow-Ups: