[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static T OneOf<T>(
this Random sender,
params T[] values
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function OneOf(Of T) (
sender As Random,
ParamArray values As T()
) As T
Dim sender As Random
Dim values As T()
Dim returnValue As T
returnValue = sender.OneOf(values)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static T OneOf(
Random^ sender,
... array<T>^ values
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member OneOf :
sender : Random *
values : 'T[] -> 'T
No code example is currently available or this language may not be supported.
[Missing <returns> documentation for "M:DevCase.Extensions.RandomExtensions.RandomExtensions.OneOf``1(System.Random,``0[])"]
No code example is currently available or this language may not be supported.
Dim rng As New Random(Seed:=Environment.TickCount)
Dim value As Integer = rng.OneOf({1, 2, 3})
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.