Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js random minus

var plusOrMinus = Math.random() < 0.5 ? -1 : 1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #random
ADD COMMENT
Topic
Name
7+4 =