[Solved] “Chances” for a function to occur? [duplicate]

[ad_1]

Create a string of 100 letters, with 24 A’s, 12 B’s, and appropriate numbers of C’s and D’s. Generate a random number between 0 and 99; use this as an index into the string. That gives you your weighted random selection.

That’s a simple but almost graphical way to do it. You can decide based on ranges too.

0

[ad_2]

solved “Chances” for a function to occur? [duplicate]