Java tutorial
//package com.java2s; import java.util.Random; public class Main { public static void sleep(int time) { try { Thread.sleep(time); } catch (InterruptedException e) { e.printStackTrace(); } } public static void sleep() { sleep(new Random().nextInt(2000)); } }