vendredi 6 janvier 2017

Setting random variables C# that equal add up to a total

I'm creating a game in which someone opens a chest and the chest will give them a random prize. The maximum I can give out is 85,000,000 in 10,000 chests which is 8,500 average however I want some to make it so some chests will be below this value and above and to be able to set a min lose of 2,500 and max win 250,000 but still get the total value of 85,000,000.

I'm really struggling to come up with an algorithm for this using my C# knowledge.




Aucun commentaire:

Enregistrer un commentaire