GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing cpprefjp.github.io — std::ranges::shuffle - cpprefjp C++日本語リファレンス function template <algorithm> std::ranges::shuffle(C++20)概要範囲のそれぞれの要素を同じ確率で並び替える。
計算量正確に 備考以下の実装では、フィッシャー - イェーツのシャッフルアルゴリズムが使用されている:
例整数の配列をシャッフルする出力例
文字列をシャッフルする出力例
バージョン言語
処理系
参照
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |