This question already has an answer here:
- A weighted version of random.choice 18 answers
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