How can I get random -1 or 1 (not between -1 or 1, just -1 or 1, only this 2 values) in canvas?
I know that to get random number I can use:
Math.random()
But I want only random 1 or -1.
Aucun commentaire:
Enregistrer un commentaire