samedi 6 avril 2019

var damage = Math.max(Math.floor(Math.random() * max)+1, min) what is the meaning first 'Math.max' and last ',min' here

var damage = Math.max(Math.floor(Math.random() * max)+1, min); 

What is the meaning first Math.max and last ,min here. Please explain the whole line.




Aucun commentaire:

Enregistrer un commentaire