Java tutorial
//package com.java2s; public class Main { public static void randomSleep() { try { Thread.sleep((long) (Math.random() * 3000)); } catch (InterruptedException e) { e.printStackTrace(); } } }