public long nextLong(){
  return ((long)next(32) << 32) + next(32);
}

public long nextLong ( ) { return ( ( long ) next ( 32 ) << 32 ) + next ( 32 ) ; }
returns the next pseudorandom , uniformly distributed long value from this random number generator ' s sequence . the general contract of nextlong is that one long value is pseudorandomly generated and returned . all 264 possible long values are produced with ( approximately ) equal probability . the method nextlong is implemented by class random as follows : public long nextlong ( ) { return ( ( long ) next ( 32 ) < < 32 ) + next ( 32 ) ; }
