Hello, i'm roughly new to c# and i was wondering how to Have my program make a decision based on a percentage.
For example there's a 56% chance that a sprite on a map will move left and a 54% chance it will move right. Then there's another sprite that has a 48% chance to move left and a 52% percent chance it will move right, and there are many more sprites that each have different values. This inst very hard but once you have many different chances it gets really complicated
Is there any way to figure out were it will move without having to do making time consuming functions that convert the percentages to ratios then make many random functions and a bunch of if-statements to see weather it will move right or left.
Thanks.