Home
last modified time | relevance | path

Searched refs:RAND_MAX (Results 1 – 25 of 78) sorted by relevance

1234

/external/eigen/test/
Drand.cpp78 CALL_SUBTEST(check_in_range<int>(-RAND_MAX+10,RAND_MAX-10)); in test_rand()
116 CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-RAND_MAX+10+bins*(RAND_MAX/bins)-1,bins)); in test_rand()
117 …CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-int64(RAND_MAX)+10+bins*(2*int64(RAND_MAX)/bins)-1… in test_rand()
/external/eigen/bench/btl/generic_bench/init/
Dinit_function.hh35 return std::rand()/double(RAND_MAX); in pseudo_random()
40 return std::rand()/double(RAND_MAX); in pseudo_random()
/external/webrtc/webrtc/voice_engine/test/auto_test/
Dvoe_stress_test.cc250 action = rand() <= (RAND_MAX / 2); in CreateDeleteChannelsTest()
267 (static_cast<double> (RAND_MAX) + 1.0f) * in CreateDeleteChannelsTest()
352 if (rnd < (RAND_MAX / 2)) { in MultipleThreadsTest()
396 if (rnd < (RAND_MAX / 2)) { in ProcessExtraApi()
/external/compiler-rt/test/tsan/
Dstatic_init1.cc13 if (p.x > RAND_MAX || p.y > RAND_MAX) in Thread()
Dstatic_init2.cc15 if (c->x >= RAND_MAX) in foo()
Dstatic_init3.cc34 if (c->x >= RAND_MAX) in Thread2()
Dstatic_init6.cc28 if (c->x >= RAND_MAX) in Thread1()
Dstatic_init5.cc28 if (c->x >= RAND_MAX) in Thread1()
/external/libopus/celt/tests/
Dtest_unit_entropy.c175 ft=rand()/((RAND_MAX>>(rand()%11U))+1U)+10; in main()
176 sz=rand()/((RAND_MAX>>(rand()%9U))+1U); in main()
236 sz=rand()/((RAND_MAX>>(rand()%9U))+1U); in main()
244 data[j]=rand()/((RAND_MAX>>1)+1); in main()
246 enc_method[j]=rand()/((RAND_MAX>>2)+1); in main()
283 dec_method=rand()/((RAND_MAX>>2)+1); in main()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes()
450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()
498 rand() / ((RAND_MAX + 1U) / 0x100); in thrust_fakes()
Dns-common.c207 last = RAND_MAX < (unsigned int)last ? RAND_MAX : last; in rand_within()
210 rand_val = rand() / ((RAND_MAX + 1U) / num) + first; in rand_within()
232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed()
/external/eigen/unsupported/doc/examples/
DFFT.cpp64 vec[k] = T( rand() )/T(RAND_MAX) - .5; in RandomFill()
71 vec[k] = std::complex<T> ( T( rand() )/T(RAND_MAX) - .5, T( rand() )/T(RAND_MAX) - .5); in RandomFill()
/external/freetype/src/psaux/
Dpsread.c59 return (double)rand() / RAND_MAX < .00; in randomError2()
66 return (double)rand() / RAND_MAX < .00 ? rand() : 0; in randomValue()
/external/eigen/unsupported/test/
DFFTW.cpp14 …x<T> RandomCpx() { return std::complex<T>( (T)(rand()/(T)RAND_MAX - .5), (T)(rand()/(T)RAND_MAX - … in RandomCpx()
89 tbuf[k]= (T)( rand()/(double)RAND_MAX - .5); in test_scalar_generic()
152 inbuf[k]= Complex( (T)(rand()/(double)RAND_MAX - .5), (T)(rand()/(double)RAND_MAX - .5) ); in test_complex_generic()
/external/deqp/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5FmaPrecision.cpp419 a = static_cast<float>(randomFormula(RAND_MAX)) / in generateData()
420 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData()
422 b = static_cast<float>(randomFormula(RAND_MAX)) / in generateData()
423 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData()
425 c = static_cast<float>(randomFormula(RAND_MAX)) / in generateData()
426 (static_cast<float>(static_cast<float>(RAND_MAX) / static_cast<float>(m_amplitude * 2.0f))) - in generateData()
/external/autotest/client/tests/isic/
Disic-gcc41-fix.patch13 if ( rand() <= (RAND_MAX * ICMPCksm) )
42 if ( rand() <= (RAND_MAX * TCPCksm) )
/external/libaom/libaom/test/
Dec_test.cc46 sz = rand() / ((RAND_MAX >> (rand() % 9U)) + 1U); in TEST()
55 data[j] = rand() / ((RAND_MAX >> 1) + 1); in TEST()
/external/libcxx/test/std/depr/depr.c.headers/
Dstdlib_h.pass.cpp63 #ifndef RAND_MAX
64 #error RAND_MAX not defined
/external/webrtc/webrtc/test/
Dfake_network_pipe.cc28 double uniform1 = (rand() + 1.0) / (RAND_MAX + 1.0); // NOLINT in GaussianRandom()
29 double uniform2 = (rand() + 1.0) / (RAND_MAX + 1.0); // NOLINT in GaussianRandom()
/external/webrtc/webrtc/system_wrappers/test/TestSort/
DTestSort.cc109 double floatRand = static_cast<double>(rand()) / RAND_MAX; in TypedRand()
123 return static_cast<Type>((static_cast<Type>(rand()) / RAND_MAX) - 0.5); in TypedRand()
/external/skia/tests/
DPathOpsCubicIntersectionTest.cpp480 cubic1.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
481 cubic1.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
482 cubic2.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
483 cubic2.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
/external/skqp/tests/
DPathOpsCubicIntersectionTest.cpp480 cubic1.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
481 cubic1.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
482 cubic2.fPts[i].fX = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
483 cubic2.fPts[i].fY = static_cast<double>(SK_RAND(seed)) / RAND_MAX * 100; in CubicIntersection_RandTest()
/external/grpc-grpc/test/core/util/
Dport_isolated_runtime_environment.cc39 (static_cast<double>(RAND_MAX) + 1.0); // values from [0,1) in get_random_port_offset()
/external/libcxx/test/std/language.support/support.runtime/
Dcstdlib.pass.cpp40 #ifndef RAND_MAX
41 #error RAND_MAX not defined
/external/tensorflow/tensorflow/lite/testing/
Dgenerate_testspec_test.cc27 return static_cast<float>(rand_r(&seed)) / RAND_MAX - 0.5f; in TEST()

1234