I've been messing around with a little game app in VB.NET and have run into something that seems simple but has me baffled. Here is my problem:
I need to generate 5000 dots of which 50% of them are white, 20% are green, 10% are blue and 10% are red, and 10% are yellow.
I can generate the dots with ease but the percentage formula has me stumped. I've always sucked at percentages![]()
Any math wiz here that can show me how to get the right ratio of colored dots?