Skip to content

Instantly share code, notes, and snippets.

@Budincsevity
Last active August 28, 2017 08:15
Show Gist options
  • Save Budincsevity/9efb3fdb8b2a07722f25f73bcff6bb74 to your computer and use it in GitHub Desktop.
Save Budincsevity/9efb3fdb8b2a07722f25f73bcff6bb74 to your computer and use it in GitHub Desktop.
Utility class for Java Boolean
public class BooleanUtils {
private static final Random RANDOM = new Random();
public boolean maybe() {
return RANDOM.nextBoolean();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment