samedi 10 février 2018

Random number generator but with a % chance for certain numbers for five variables [duplicate]

This question already has an answer here:

So, I want to make 5 variables with random generated numbers from 1 to 50 but with using % chance on certain numbers, like 1 has maybe 5%, 30 can have 4%... The percentages don't matter at the moment, but I want to know if there is a way to do this and how? I'm making it in c++, but C# or python are okay too.




Aucun commentaire:

Enregistrer un commentaire