I am new to javascript and I am trying to get random positive and negative numbers between 1000 and -1000
There was a reply for it in How to get Random number + & -
Here the below suggesion was mentioned
var num = Math.floor(Math.random()*99) + 1; // this will get a number between 1 and 99;
num *= Math.floor(Math.random()*2) == 1 ? 1 : -1; // this will add minus sign in 50% of cases
What is num *? I mean what is this concept called for me to study more on.