Zero  0.1.0
Functions
random_input.h File Reference

: Declaration of the (common) random functions, used for the workload inputs More...

#include "zipfian.h"
#include "kits_thread.h"

Go to the source code of this file.

Functions

int URand (const int low, const int high)
 Generates a uniform random number between (low) and (high) More...
 
bool URandBool ()
 
short URandShort (const short low, const short high)
 
void URandFillStrCaps (char *dest, const int sz)
 
void URandFillStrNumbx (char *dest, const int sz)
 
int ZRand (const int low, const int high)
 
void setZipf (const bool isEnabled, const double s)
 
int UZRand (const int low, const int high)
 

Detailed Description

: Declaration of the (common) random functions, used for the workload inputs

Author
: Ippokratis Pandis, Feb 2009

Function Documentation

§ setZipf()

void setZipf ( const bool  isEnabled,
const double  s 
)

§ URand()

int URand ( const int  low,
const int  high 
)

Generates a uniform random number between (low) and (high)

§ URandBool()

bool URandBool ( )

§ URandFillStrCaps()

void URandFillStrCaps ( char *  dest,
const int  sz 
)

§ URandFillStrNumbx()

void URandFillStrNumbx ( char *  dest,
const int  sz 
)

§ URandShort()

short URandShort ( const short  low,
const short  high 
)

§ UZRand()

int UZRand ( const int  low,
const int  high 
)

§ ZRand()

int ZRand ( const int  low,
const int  high 
)