RandomExtensionsNextElementT(Random, ReadOnlySpanT) Method

Definition

Namespace: Jodosoft.Primitives
Assembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static T NextElement<T>(
	this Random random,
	ReadOnlySpan<T> span
)

Parameters

random  Random
 
span  ReadOnlySpanT
 

Type Parameters

T

Return Value

T

Usage Note

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).

See Also