Edit

Share via


RandomNumberGenerator.Shuffle<T>(Span<T>) Method

Definition

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

public static void Shuffle<T>(Span<T> values);

Type Parameters

T

The type of span.

Parameters

values
Span<T>

The span to shuffle.

Applies to

Product Versions
.NET 8, 9, 10