RAND_MAX
#define RandFlt(min, max) (min + (max - min) * rand() / (float) RAND_MAX)
#define RandBell(scale) (scale * (1.0f - (rand() + rand() + rand()) / ((float) RAND_MAX * 1.5f)))
#define frand() ((float)rand() / (float)RAND_MAX)
#define frand() ((float)rand() / (float)RAND_MAX)
r = rand() * 1.0 / RAND_MAX;
th = rand() * M_PI * 2 / RAND_MAX;
dth = rand() * 1.0 / RAND_MAX;
dth = rand() * 1.0 / RAND_MAX;
int32 index = int32(1.0 * rand() * array->count / RAND_MAX);
int32 c = int32(52.0 * rand() / RAND_MAX);
int32 index = int32(1.0 * gNum * rand() / RAND_MAX);
int32 insertCount = int32(1000.0 * rand() / RAND_MAX);
count = int32(1000.0 * rand() / RAND_MAX);
int32 index = int32(1.0 * gNum * rand() / RAND_MAX);
int32 index = int32(1.0 * gNum * rand() / RAND_MAX);
int32(1.0 * gNum * rand() / RAND_MAX));
int32(1.0 * gNum * rand() / RAND_MAX));
i = int32(rand() * 100. / RAND_MAX);
size_t size = size_t(rand() * 1. * maxSize / RAND_MAX);
&& (1.0 * rand() / RAND_MAX) > sRandomReorder) {
|| (sRandomDrop > 0.0 && (1.0 * rand() / RAND_MAX) > sRandomDrop))
add = (bigtime_t)(1.0 * rand() / RAND_MAX * 500000) - 250000;
sRoundTripTime += (bigtime_t)(1.0 * rand() / RAND_MAX * 150000);