I need to generate a random number between -99 to 99, how do I code this? This is what I have so far, but it always comes out negative
Random gererator=new Random();
num1=Math.abs(generator.nextInt()) % 99 + -99;
How do I fix it?