Here you can find the source of randomFailure()
public static boolean randomFailure()
//package com.java2s; //License from project: Apache License public class Main { public static boolean randomFailure() { return !randomSuccess(); }/*from w w w .j a v a2s . c om*/ public static boolean randomSuccess() { int x = (int) (Math.random() * 100); return x > 10; } }