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
洗牌順序引擎
C++11
帶符號減法進位引擎
其他
C++11
generate_canonical
C++11
seed_seq
參考
<random>
ranlux48
類
<random>
std::
ranlux48
typedef discard_block_engine <ranlux48_base, 389, 11> ranlux48;
Ranlux 48 生成器
一個帶符號減法進位偽隨機生成器,生成48位數字,並具有加速推進功能。
它是
跳塊引擎
介面卡在
帶符號減法進位引擎
上的一個例項化,具有以下模板引數
引數
名稱
值
引擎
基礎引擎
ranlux48_base
p
塊大小
389
r
使用的塊
11
成員型別
以下別名是...的成員型別
ranlux48
:
成員型別
定義
說明
result_type
uint_fast64_t
生成的數字的型別。
成員函式
作為一個
跳塊引擎
型別,它具有以下成員函式
(建構函式)
構造 discard-block 引擎
(公共成員函式)
min
最小值
(公共靜態成員函式)
max
最大值
(公共靜態成員函式)
seed
種子基礎引擎
(公共成員函式)
operator()
Generate random number
(public member function)
(生成隨機數
(公共成員函式)
)
discard (丟棄)
Advance internal state
(public member function)
(推進內部狀態
(公共成員函式)
)
非成員函式
作為一個
跳塊引擎
型別,以下運算子過載可應用於它
operator<<
插入到輸出流
(函式模板)
關係運算符
關係運算符
(函式模板)
成員常量
成員常量
定義
說明
塊大小 (block_size)
389
每個
塊
中的元素數量。
已用塊 (used_block)
11
被使用的(未丟棄的)塊中的元素數量。
另見
跳塊引擎
棄塊隨機數引擎介面卡
(類模板)