public static File createTempDir(File parent){
  File temp=new File(parent,Integer.toString(Math.abs(UNSEEDED_RANDOM.nextInt()) % 1000000));
  temp.delete();
  temp.mkdir();
  temp.deleteOnExit();
  return temp;
}

public static File createTempDir ( File parent ) { File temp = new File ( parent , Integer . toString ( Math . abs ( UNSEEDED_RANDOM . nextInt ( ) ) % 1000000 ) ) ; temp . delete ( ) ; temp . mkdir ( ) ; temp . deleteOnExit ( ) ; return temp ; }
create a temporary directory that is a child of the given directory
