Boolean Examples

Examples of available methods and a possible output from a call. See the API documentation for the syntax of the methods.

NOTES: By adding using Faker;, all Faker. prefixes in the examples can be removed.

Random Boolean

Will generate either true or false.

Faker.Boolean.Next();

OUTPUTS: false

GitHub