Hi guys, this has been killing me but does anyone know how to incorporate weighted probabilities with random numbers? For example:
I need to have a random number between 1-9 and have these probabilities:
[TABLE="width: 240"]
<tbody>[TR]
[TD]1[/TD]
[TD]5%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5%[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be much appreciated!
I just need a formula please and thank you.
I need to have a random number between 1-9 and have these probabilities:
[TABLE="width: 240"]
<tbody>[TR]
[TD]1[/TD]
[TD]5%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5%[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be much appreciated!
I just need a formula please and thank you.