Language

RandomNumberGenerator.Shuffle(Span) Method

Definition

Performs an in-place shuffle of a span using cryptographically random number generation.

public:
generic 
 static void Shuffle(Span values);
public static void Shuffle(Span values);
static member Shuffle : Span<'T> -> unit
Public Shared Sub Shuffle(Of T) (values As Span(Of T))

Type Parameters

T

The type of span.

Parameters

values
Span

The span to shuffle.

Applies to