random numeros negativos java code example
Example: random numeros negativos java
long myRandomLong = (long)(Math.random() * 500 * (Math.random() > 0.5 ? 1 : -1));
long myRandomLong = (long)(Math.random() * 500 * (Math.random() > 0.5 ? 1 : -1));