public static long nextLong(long n) { if (n <= 0) { throw new IllegalArgumentException( "Upper bound for nextInt must be positive" ); }  return (long)(Math.random() * n); }
public long nextLong() {  return nextLong(Long.MAX_VALUE); }
    public static long nextLong(long n) {        if (n <= 0) {            throw new IllegalArgumentException(                "Upper bound for nextInt must be positive"            );        }        // TODO: check this cannot return 'n'        return (long)(Math.random() * n);     }