Java ThreadLocalRandom getBoolean()

Here you can find the source of getBoolean()

Description

get Boolean

License

Apache License

Declaration

public static boolean getBoolean() 

Method Source Code

//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
}

Related

  1. generateString(int length)
  2. generateString(Random rng, String characters, int length)
  3. generateStringFromCharacters(final Random random, final char[] validChars, final int min, final int max)
  4. genRandomString()
  5. get_a_number_between_min_and_max(int min, int max)
  6. getElement(boolean[] array)
  7. getInt(int bound)
  8. getLetter()
  9. getRandom()