CRI ADX
Last Updated: 2024-07-17 10:48 p
|
Random Number Generator interface 更多...
#include <cri_le_atom_ex.h>
成员变量 | |
CriSint32(* | CalculateWorkSize )(void) |
Calculate the work buffer size 更多... | |
CriAtomExRngHn(* | Create )(void *work, CriSint32 work_size) |
Create a Random Number Generator 更多... | |
void(* | Destroy )(CriAtomExRngHn rng) |
Destroy a Random Number Generator 更多... | |
CriSint32(* | Generate )(CriAtomExRngHn rng, CriSint32 min, CriSint32 max) |
Generate a random number 更多... | |
void(* | SetSeed )(CriAtomExRngHn rng, CriUint32 seed) |
Set a random seed 更多... | |
Random Number Generator interface
CriSint32(* CalculateWorkSize) (void) |
Calculate the work buffer size
CriAtomExRngHn(* Create) (void *work, CriSint32 work_size) |
Create a Random Number Generator
[in] | work | work buffer |
[in] | work_size | work buffer size |
void(* Destroy) (CriAtomExRngHn rng) |
Destroy a Random Number Generator
[in] | rng | Random Number Generator handle |
CriSint32(* Generate) (CriAtomExRngHn rng, CriSint32 min, CriSint32 max) |
Generate a random number
[in] | rng | Random Number Generator handle |
[in] | min | minimum value |
[in] | max | maximum value |
void(* SetSeed) (CriAtomExRngHn rng, CriUint32 seed) |
Set a random seed
[in] | rng | Random Number Generator handle |
[in] | seed | random seed |