MCPcopy Create free account
hub / github.com/DiUS/java-faker / Bool

Method Bool

src/main/java/com/github/javafaker/Bool.java:6–8  ·  view source on GitHub ↗
(Faker faker)

Source from the content-addressed store, hash-verified

4 private final Faker faker;
5
6 protected Bool(Faker faker) {
7 this.faker = faker;
8 }
9
10 public boolean bool() {
11 return faker.random().nextBoolean();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected