namespace: etk::tool
Description:
Synopsis:
double frand (double _a,
double _b);
int32_t irand (int32_t _a,
int32_t _b);
void resetRandom ();
void randSeek (int32_t _val);
Detail:
frand
double frand (double _a,Get a random value in a specific range.
double _b);
int32_t irand (int32_t _a,
int32_t _b);
Parameter [input]: | _a | Lower value of the random. | Parameter [input]: | _b | Bigger value of the random. |
Return: | Random Value between [_a and _b] |
resetRandom
void resetRandom ();Reset the random system with a random value (time).
randSeek
void randSeek (int32_t _val);Reset the random system with The specify value.
Parameter [input]: | _val | Seek value for the pseudo random system. |