dimanche 20 novembre 2022

How to get two random numbers with the same limit

I want to get two random numbers or variables respectively within the same range, taking into account that the sum of the two numbers does not exceed the limit imposed by Math.random(). How can I do that?

For example there are three million snowflakes that land randomly either on the roof or on the ground




Aucun commentaire:

Enregistrer un commentaire