Searched refs:RAND_MAX (Results 1 – 21 of 21) sorted by relevance
165 double rand_limit = RAND_MAX; // The maximum possible value in PortableRandomInRange()169 value = (value * (static_cast<uint64_t>(RAND_MAX) + 1)) + rand(); in PortableRandomInRange()170 rand_limit = (rand_limit * (RAND_MAX + 1.0)) + RAND_MAX; in PortableRandomInRange()
69 #define RAND_MAX 32767 macro75 return temp % (RAND_MAX+1); in rand()
86 uint32_t part1 = rand() & (RAND_MAX - 1); in randomNumber()87 uint32_t part2 = rand() & (RAND_MAX - 1); in randomNumber()
49 double r = rand()/(RAND_MAX + 1.0); in operator()79 double r = rand()/(RAND_MAX + 1.0); in operator()
108 double floatRand = static_cast<double>(rand()) / RAND_MAX; in TypedRand()122 return static_cast<Type>((static_cast<Type>(rand()) / RAND_MAX) - 0.5); in TypedRand()
53 return rand() > (RAND_MAX/2) ? -1 : 1; in ut_compar()
245 int entry = rand() * (kNumEntries / RAND_MAX + 1); in TEST_F()
75 CPPUNIT_CHECK( rand_val >= 0 && rand_val <= RAND_MAX ); in import_checks()
62 v_double = ((double)start) + (((double)rand ())/RAND_MAX) * gap; in random_int_in_range()
818 b = (r / (double) RAND_MAX) * 255.0; in _dbus_generate_pseudorandom_bytes_buffer()
330 GrScalar x = (float)rand() / RAND_MAX;
1571 lowerRND = (rand()/(RAND_MAX/arraySize)); in TestBounds()1572 upperRND = lowerRND + (rand()/(RAND_MAX/(arraySize-lowerRND))); in TestBounds()
666 data[size] = datachar[(rand() * 50) / RAND_MAX]; in TestCheckFCD()
484 double reference_mark = (double)rand() / (double)RAND_MAX; in next()
176 indexes[i] = (int) ((double) rand() / RAND_MAX * num); in icvChoose7()
1674 const float rnd_const = shift/RAND_MAX; in _cvRandomModification()
1877 vs->challenge[i] = (int) (256.0*rand()/(RAND_MAX+1.0)); in make_challenge()
1883 vs->challenge[i] = (int) (256.0*rand()/(RAND_MAX+1.0)); in make_challenge()
1681 SkScalar x = (float)rand() / RAND_MAX; in getMaxStretch()
419 … Math.random was skewed slightly upward because it assumed that RAND_MAX was outside the range of424 … Fixed by accounting for RAND_MAX return values. Also, switched Windows over to rand_s, which has
27402 * wtf/MathExtras.h: Include stdlib.h for srand and RAND_MAX.