Here you can find the source of getBoolean()
public static boolean getBoolean()
//package com.java2s; //License from project: Apache License import java.util.concurrent.ThreadLocalRandom; public class Main { public static boolean getBoolean() { return ThreadLocalRandom.current().nextBoolean(); }//from ww w .j a va 2s.co m }