How can I make "Random" a bit less "random"
DrGlickert
Member Posts: 1,135
So in my bubble shooter game I have 7 different colored balls, and an additional "power" ball that breaks through everything, so technically 8 balls.
I have a random ball generator that generates random numbers which correspond to different balls. Random(1,8) makes the "Power" ball come up 1/8 times. Ideally I'd like the "Power" ball to come up about 8-10% of the time. So a little less than 1/8.
Any ideas on how to make the "Power ball" come up a little less frequently?
I was doing Random (1,15), where 1/8 was blue, 2/9 was red, 3/10 was green, etc. However, I've changed some rules and an no longer do this. Any ideas?
I have a random ball generator that generates random numbers which correspond to different balls. Random(1,8) makes the "Power" ball come up 1/8 times. Ideally I'd like the "Power" ball to come up about 8-10% of the time. So a little less than 1/8.
Any ideas on how to make the "Power ball" come up a little less frequently?
I was doing Random (1,15), where 1/8 was blue, 2/9 was red, 3/10 was green, etc. However, I've changed some rules and an no longer do this. Any ideas?
Comments
Hope this helps.