AsyncEnumerable.Shuffle<TSource> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
シーケンスの要素の順序をシャッフルします。
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>
要素がランダム化された順序で入力シーケンスの要素に対応するシーケンス。
注釈
ランダム化は、暗号化されていない安全な乱数ジェネレーターを使用して実行されます。