Here you can find the source of sleepRandMs(int ms)
public static final void sleepRandMs(int ms)
//package com.java2s; public class Main { public static final void sleepRandMs(int ms) { sleepMs((long) (Math.random() * ms)); }/* ww w .j av a 2s . c om*/ public final static void sleepMs(long ms) { if (ms > 0) { try { Thread.sleep(ms); } catch (InterruptedException e) { // Thread.currentThread().dumpStack(); } } } }