samedi 27 octobre 2018

generate random number in range of 50 of a variable number

How can I generate random number in range of 50 of a variable number (changing number)? I tried this:

Math.random() * variableNumber + 100 - 50

but doesn't work as I wanted to




Aucun commentaire:

Enregistrer un commentaire