Categories
How to get a random boolean value?
public static boolean BooleanRand(){ boolean a = (boolean)Math.random(); return a; }
Answer the question
In order to leave comments, you need to log in
private static boolean booleanRand() { return new Random().nextBoolean(); }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question