public Random(){
  this(System.currentTimeMillis());
}

public Random ( ) { this ( System . currentTimeMillis ( ) ) ; }
creates a new random number generator . its seed is initialized to a value based on the current time : public random ( ) { this ( system . currenttimemillis ( ) ) ; } see also : system . currenttimemillis ( )
