1
如何使用crypto ++ AutoSeededRandomPool隨機數生成器在指定範圍內生成隨機數。使用Crypto ++在指定範圍內生成隨機數
如何使用crypto ++ AutoSeededRandomPool隨機數生成器在指定範圍內生成隨機數。使用Crypto ++在指定範圍內生成隨機數
你如何產生一個指定範圍內的隨機數...
使用一個Integer
,這是多精度。感興趣的構建者:
Integer (RandomNumberGenerator &rng, const Integer &min, const Integer &max,
RandomNumberType rnType=ANY, const Integer &equiv=Zero(), const Integer &mod=One())
有關詳細信息,請參閱Integer Class Reference。
...使用加密++
AutoSeededRandomPool
AutoSeededRandomPool
從RandomNumberGenerator
得來,所以你將能夠使用它。