Boolean.

Next(double) Method

Summary

Generates a weighted Boolean value
Namespace
Faker
Containing Type
Boolean

Syntax

public static bool Next(double trueProbability)

Parameters

Name Type Description
trueProbability double The probability to have a true value. Ranges from 0.0 to 1.0.

Return Value

Type Description
bool The random boolean value
GitHub