/** * Waits for a random amount of seconds within the given bounds. * <p> * See {@link #randomMillis(int, int)} for a detailed description on using a negative lower bound. * * @param minWaitSeconds the minimal time to wait in seconds. * @param maxWaitSeconds the maximal time to wait in seconds. This must be >= minWaitSeconds and also > 0 * or the * method will always return immediately */ public static void randomSeconds(double minWaitSeconds, double maxWaitSeconds) { randomMillis((int) Math.round(1000 * minWaitSeconds), (int) Math.round(1000 * maxWaitSeconds)); } }
Wait.randomMillis(-500, 500); } catch (HandledException e) { throw e;