@@ -0,0 +1,537 @@
+package sfBugs;%0A%0Aimport java.util.Random;%0A%0Apublic class Bug2943090 %7B%0A%09%0A%09Random r = new Random();%0A%09%0A%09int getNegativeNumber() %7B%0A%09%09return (int) (r.nextDouble() * -100);%0A%09%7D%0A%09int getNegativeNumber2() %7B%0A%09%09return (int) (-r.nextDouble() * 100);%0A%09%7D%0A%09int getNegativeNumber(int n) %7B%0A%09%09return (int) (r.nextDouble() * n);%0A%09%7D%0A%09%0A%09public static void main(String args%5B%5D) %7B%0A%09%09Bug2943090 b = new Bug2943090();%0A%09%09System.out.println(b.getNegativeNumber());%0A%09%09System.out.println(b.getNegativeNumber2());%0A%09%09System.out.println(b.getNegativeNumber(-100));%0A%09%7D%0A%0A%7D%0A

add test case