etk::tool Namespace Reference

Functions

double frand (double _a, double _b)
 
int32_t irand (int32_t _a, int32_t _b)
 
void resetRandom ()
 
void randSeek (int32_t _val)
 

Detailed Description

Some un-usefull tools.

Todo:
Remove all of this use std11 random

Function Documentation

§ frand()

double etk::tool::frand ( double  _a,
double  _b 
)

Get a random value in a specific range in float.

Parameters
[in]_aLower value of the random.
[in]_bBigger value of the random.
Returns
Random Value between [_a and _b]

§ irand()

int32_t etk::tool::irand ( int32_t  _a,
int32_t  _b 
)

Get a random value in a specific range in integer.

Parameters
[in]_aLower value of the random.
[in]_bBigger value of the random.
Returns
Random Value between [_a and _b]

§ randSeek()

void etk::tool::randSeek ( int32_t  _val)

Reset the random system with The specify value.

Parameters
[in]_valSeek value for the pseudo random system.

§ resetRandom()

void etk::tool::resetRandom ( )

Reset the random system with a random value (time).