jeudi 4 août 2022

how can i create a random number between -100 to 200? in javascript [duplicate]

i need to create a random number -100 to 200: i can create a random number -100 to 100:

console.log(Math.ceil(Math.random() * 200) - 100); //this my code for -100 to 100




Aucun commentaire:

Enregistrer un commentaire