cplusplus
.com
教程
參考
文章
論壇
C++
教程
參考
文章
論壇
參考
C 庫
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
C++11
<cfenv> (fenv.h)
<cfloat> (float.h)
C++11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
C++11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
C++11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
C++11
<ctgmath> (tgmath.h)
<ctime> (time.h)
C++11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
容器
C++11
<array>
<deque>
C++11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
C++11
<unordered_map>
C++11
<unordered_set>
<vector>
輸入/輸出
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
多執行緒
C++11
<atomic>
C++11
<condition_variable>
C++11
<future>
C++11
<mutex>
C++11
<thread>
其他
<algorithm>
<bitset>
C++11
<chrono>
C++11
<codecvt>
<complex>
<exception>
<functional>
C++11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
C++11
<random>
C++11
<ratio>
C++11
<regex>
<stdexcept>
<string>
C++11
<system_error>
C++11
<tuple>
C++11
<type_traits>
C++11
<typeindex>
<typeinfo>
<utility>
<valarray>
<random>
分佈
C++11
伯努利分佈
C++11
二項分佈
C++11
柯西分佈
C++11
卡方分佈
C++11
離散分佈
C++11
指數分佈
C++11
極值分佈
C++11
費舍爾F分佈
C++11
伽瑪分佈
C++11
幾何分佈
C++11
對數正態分佈
C++11
負二項分佈
C++11
正態分佈
C++11
分段常數分佈
C++11
分段線性分佈
C++11
泊松分佈
C++11
學生t分佈
C++11
均勻整數分佈
C++11
均勻實數分佈
C++11
威布林分佈
生成器
C++11
預設隨機引擎
C++11
丟棄區塊引擎
C++11
獨立位元引擎
C++11
knuth_b
C++11
線性同餘引擎
C++11
梅森旋轉引擎
C++11
minstd_rand
C++11
minstd_rand0
C++11
mt19937
C++11
mt19937_64
C++11
隨機裝置
C++11
ranlux24
C++11
ranlux24_base
C++11
ranlux48
C++11
ranlux48_base
C++11
shuffle_order_engine
C++11
subtract_with_carry_engine
其他
C++11
generate_canonical
C++11
seed_seq
獨立位元引擎
C++11
independent_bits_engine::(建構函式)
成員函式
C++11
independent_bits_engine::base
C++11
independent_bits_engine::discard
C++11
independent_bits_engine::operator()
C++11
independent_bits_engine::seed
靜態成員函式
C++11
independent_bits_engine::max
C++11
independent_bits_engine::min
非成員函式
C++11
operator<<
C++11
operator>>
C++11
關係運算符
參考
<random>
獨立位元引擎
類模板
<random>
std::
independent_bits_engine
template <class Engine, size_t w, class UIntType>class independent_bits_engine;
獨立位元隨機數引擎介面卡
一個引擎介面卡類模板,它將偽隨機數生成器
Engine
型別適配為生成具有特定位數(
w
)的隨機數。
模板引數
引擎
一個
隨機數引擎
型別。所有標準生成器,除了
random_device
,都是隨機數引擎型別。
w
字長:
每個生成數字的位數。
size_t
是一個無符號整數型別。
UIntType
無符號整數型別。
引擎生成的數值是該型別。
成員型別
以下別名是...的成員型別
獨立位元引擎
:
成員型別
定義
說明
result_type
第三個模板引數 (
UIntType
)
生成的數字的型別。
成員函式
(建構函式)
構造獨立位引擎
(公共成員函式)
min
最小值
(公共靜態成員函式)
max
最大值
(公共靜態成員函式)
seed
種子基礎引擎
(公共成員函式)
operator()
Generate random number
(public member function)
(生成隨機數
(公共成員函式)
)
discard (丟棄)
Advance internal state
(public member function)
(推進內部狀態
(公共成員函式)
)
base
返回基引擎
(public member function)
非成員函式
operator>>
從輸入流提取 (Extract from input stream)
(function template)
operator<<
插入到輸出流
(函式模板)
關係運算符
關係運算符
(函式模板)
另見
丟棄區塊引擎
棄塊隨機數引擎介面卡
(類模板)
shuffle_order_engine
隨機序列隨機數引擎介面卡
(類模板)