RandomNumberGenerator.Shuffle<T>(Span<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs an in-place shuffle of a span using cryptographically random number generation.
public:
generic <typename T>
static void Shuffle(Span<T> values);
public static void Shuffle<T> (Span<T> 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<T>
The span to shuffle.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.