RandomExtensionsNextDouble(Random, Double) Method
Returns a non-negative Double value between zero and the maximum specified.
Namespace: DevCase.Extensions.RandomExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static double NextDouble(
this Random sender,
double maxValue
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function NextDouble (
sender As Random,
maxValue As Double
) As Double
Dim sender As Random
Dim maxValue As Double
Dim returnValue As Double
returnValue = sender.NextDouble(maxValue)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static double NextDouble(
Random^ sender,
double maxValue
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member NextDouble :
sender : Random *
maxValue : float -> float
No code example is currently available or this language may not be supported.
- sender Random
-
The source Random.
- maxValue Double
-
The maximum value.
Double
The resulting
Double value.
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).