Случайный нумерос негативос java
long myRandomLong = (long)(Math.random() * 500 * (Math.random() > 0.5 ? 1 : -1));
Dangerous Dog
long myRandomLong = (long)(Math.random() * 500 * (Math.random() > 0.5 ? 1 : -1));