Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random positive or negative javascript

Math.random() < 0.5 ? -1 : 1;
 
PREVIOUS NEXT
Tagged: #random #positive #negative #javascript
ADD COMMENT
Topic
Name
2+4 =