<random>

<random>

std::預設隨機引擎 (default_random_engine)

預設隨機引擎 (Default random engine)
這是一個生成偽隨機數的隨機數引擎類。(This is a random number engine class that generates pseudo-random numbers.)

它是庫實現選擇的一個生成器,為相對隨意、非專業和/或輕量級使用提供至少可接受的引擎行為。(It is the library implemention's selection of a generator that provides at least acceptable engine behavior for relatively casual, inexpert, and/or lightweight use.)

成員型別

以下別名是...的成員型別預設隨機引擎 (default_random_engine):

成員型別定義說明
結果型別 (result_type)一個無符號整數型別 (An unsigned integer type)生成的數字的型別。

成員函式

如果是 線性同餘引擎 型別,它具有以下成員函式 (In the case that this is a linear_congruential_engine type, it has the following member functions)

非成員函式


另見