public Time randomTime(){
  if (random.nextInt(10) == 0) {
    return null;
  }
  StringBuilder buff=new StringBuilder();
  buff.append(getInt(24));
  buff.append(':');
  buff.append(getInt(24));
  buff.append(':');
  buff.append(getInt(24));
  return Time.valueOf(buff.toString());
}

public Time randomTime ( ) { if ( random . nextInt ( 10 ) == 0 ) { return null ; } StringBuilder buff = new StringBuilder ( ) ; buff . append ( getInt ( 24 ) ) ; buff . append ( ':' ) ; buff . append ( getInt ( 24 ) ) ; buff . append ( ':' ) ; buff . append ( getInt ( 24 ) ) ; return Time . valueOf ( buff . toString ( ) ) ; }
get a random time value . in 10 % of the cases , null is returned .
