For example, generate a random number within 1-10, with the following conditions; 1-4 have 20% chance, 5-8 have a 70% and 9-10 have 10%.
I'd prefer if the solution is written in one (or all) of the following languages; C#, Java, Kotlin, JavaScript, PHP, Python,
Aucun commentaire:
Enregistrer un commentaire