RandomExtensionsNextBoolean Method
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static bool NextBoolean(
this Random random
)
<ExtensionAttribute>
Public Shared Function NextBoolean (
random As Random
) As Boolean
public:
[ExtensionAttribute]
static bool NextBoolean(
Random^ random
)
[<ExtensionAttribute>]
static member NextBoolean :
random : Random -> bool
- random Random
- The Random instance to use.
BooleanA
Boolean value that is either
or
.In Visual Basic and C#, you can call this method as an instance method on any object of type
Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).