Here are the examples of the csharp api System.Random.NextBool() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : Rand.cs
with MIT License
from ChevyRay
with MIT License
from ChevyRay
public static bool Bool()
{
lock (randLock)
return rand.NextBool();
}
19
Source : Rand.cs
with MIT License
from ChevyRay
with MIT License
from ChevyRay
public static T NextChoose<T>(this Random rand, T a, T b)
{
return rand.NextBool() ? a : b;
}