AsyncEnumerable.Shuffle<TSource> メソッド

定義

シーケンスの要素の順序をシャッフルします。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Shuffle(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Shuffle<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source);
static member Shuffle : System.Collections.Generic.IAsyncEnumerable<'Source> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Shuffle(Of TSource) (source As IAsyncEnumerable(Of TSource)) As IAsyncEnumerable(Of TSource)

型パラメーター

TSource

sourceの要素の型。

パラメーター

source
IAsyncEnumerable<TSource>

シャッフルする値のシーケンス。

返品

IAsyncEnumerable<TSource>

要素がランダム化された順序で入力シーケンスの要素に対応するシーケンス。

注釈

ランダム化は、暗号化されていない安全な乱数ジェネレーターを使用して実行されます。

適用対象