jeudi 21 mai 2015

How to use Math.random in a variable?

BOMBERMAN MOVING THE ENEMIES 4 positions: How can i use math.random in a variable? i have already tried this code but I always get the integer = 4

var random = Math.floor((Math.random() * 4) + 1);




Aucun commentaire:

Enregistrer un commentaire