std::linear_congruential_engine<UIntType,a,c,m>::discard
出自cppreference.com
< cpp | numeric | random | linear congruential engine
void discard( unsigned long long z ); |
||
推進內部狀態 z 次。
目錄 |
[編輯] 參數
z | - | 指定狀態前進次數的整數值 |
[編輯] 複雜度
不差於 z 次連續調用 operator() 的複雜度。
[編輯] 註解
此函數可以使用能令狀態前進許多步(以百萬計)而無需計算中間狀態遷移的「快速跳轉」演算法,以替代調用 operator() z 次並捨棄結果的簡單循環。
[編輯] 參閱
推進引擎狀態並返回生成的值 (公開成員函數) |