Searched refs:RAND_MAX (Results 1 – 15 of 15) sorted by relevance
194 float x = ((float)rand()) / (float)RAND_MAX; in randUniform()195 float y = ((float)rand()) / (float)RAND_MAX; in randUniform()196 float z = ((float)rand()) / (float)RAND_MAX; in randUniform()197 float w = ((float)rand()) / (float)RAND_MAX; in randUniform()
41 static int probability = PROBABILITY * RAND_MAX;
41 sleepTime += (int64_t)(random() * mBurstPeriod / RAND_MAX); in nextAbsoluteTime()
70 char x = (char)((double)rand() / RAND_MAX * 255); in read()
96 char x = (char)((double)rand() / RAND_MAX * 255);
304 shouldSeek = ((double)rand() / RAND_MAX) < 0.1; in playSource()314 seekTimeUs = (rand() * (float)durationUs) / (float)RAND_MAX; in playSource()
102 r /= (float)RAND_MAX; in SC_randf2()
156 #define RAND_MAX 0x7fffffff macro
73 mNextFIRSeqNo((rand() * 256.0) / RAND_MAX), in ARTPSource()
151 unsigned start = (unsigned)((rand()* 1000LL)/RAND_MAX) + 15550; in MakePortPair()
72 return ((double)rand() * limit) / RAND_MAX; in UniformRand()
571 return (double)rand() / RAND_MAX; in uniform_rand()
162 mSelectedIndex = (rand() * mMediaItems.size()) / RAND_MAX; in pickRandomMediaItems()
1191 return (double)rand() / RAND_MAX;
323 int64_t timeStamp = ((double)rand() / RAND_MAX) * clipDuration; in randomSeekTest()