RandomExtensionsNextElementT(Random, SpanT) Method
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static T NextElement<T>(
this Random random,
Span<T> span
)
<ExtensionAttribute>
Public Shared Function NextElement(Of T) (
random As Random,
span As Span(Of T)
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T NextElement(
Random^ random,
Span<T> span
)
[<ExtensionAttribute>]
static member NextElement :
random : Random *
span : Span<'T> -> 'T
- random Random
-
- span SpanT
-
- T
TIn 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).