Here you can find the source of pause(long low, long high)
public static void pause(long low, long high)
//package com.java2s; //License from project: Open Source License public class Main { public static void pause(long time) { pause(time, time);//from w w w.j a v a 2s . c o m } public static void pause(long low, long high) {// mill-second try { // 6 ~ 10 seconds long t = (long) (Math.random() * low) + (high - low); Thread.sleep(t); } catch (InterruptedException ex) { ex.printStackTrace(); } } }