OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RAND_MAX
(Results
1 - 25
of
167
) sorted by null
1
2
3
4
5
6
7
/external/eigen/bench/btl/generic_bench/init/
init_function.hh
35
return std::rand()/double(
RAND_MAX
);
40
return std::rand()/double(
RAND_MAX
);
/external/compiler-rt/test/tsan/
static_init1.cc
13
if (p.x >
RAND_MAX
|| p.y >
RAND_MAX
)
static_init2.cc
15
if (c->x >=
RAND_MAX
)
static_init3.cc
34
if (c->x >=
RAND_MAX
)
static_init5.cc
28
if (c->x >=
RAND_MAX
)
static_init6.cc
28
if (c->x >=
RAND_MAX
)
/external/opencv3/modules/flann/include/opencv2/flann/
random.h
63
return low + ((high-low) * (std::rand() / (
RAND_MAX
+ 1.0)));
72
inline int rand_int(int high =
RAND_MAX
, int low = 0)
74
return low + (int) ( double(high-low) * (std::rand() / (
RAND_MAX
+ 1.0)));
/external/freetype/src/cff/
cf2read.c
59
return (double)rand() /
RAND_MAX
< .00;
66
return (double)rand() /
RAND_MAX
< .00 ? rand() : 0;
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/cff/
cf2read.c
59
return (double)rand() /
RAND_MAX
< .00;
66
return (double)rand() /
RAND_MAX
< .00 ? rand() : 0;
/external/pdfium/third_party/freetype/src/cff/
cf2read.c
59
return (double)rand() /
RAND_MAX
< .00;
66
return (double)rand() /
RAND_MAX
< .00 ? rand() : 0;
/external/srtp/crypto/include/
kernel_compat.h
69
#define
RAND_MAX
32767
75
return temp % (
RAND_MAX
+1);
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
rand_r.c
50
return ((*seed = *seed * 1103515245 + 12345) &
RAND_MAX
);
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/
btRandom.h
34
#define GEN_RAND_MAX
RAND_MAX
/external/ceres-solver/examples/
random.h
44
return r /
RAND_MAX
;
/external/ceres-solver/internal/ceres/
random.h
51
return r /
RAND_MAX
;
/frameworks/base/cmds/interrupter/
interrupter.c
41
static int probability = PROBABILITY *
RAND_MAX
;
/external/srtp/crypto/replay/
ut_sim.c
53
return rand() > (
RAND_MAX
/2) ? -1 : 1;
/external/libvorbis/examples/
seeking_example.c
138
ogg_int64_t val=(double)rand()/
RAND_MAX
*length;
157
ogg_int64_t val=(double)rand()/
RAND_MAX
*pcmlength;
176
ogg_int64_t val=(double)rand()/
RAND_MAX
*pcmlength;
200
double val=(double)rand()/
RAND_MAX
*timelength;
219
double val=(double)rand()/
RAND_MAX
*timelength;
/external/eigen/unsupported/doc/examples/
FFT.cpp
64
vec[k] = T( rand() )/T(
RAND_MAX
) - .5;
71
vec[k] = std::complex<T> ( T( rand() )/T(
RAND_MAX
) - .5, T( rand() )/T(
RAND_MAX
) - .5);
/external/opencv3/modules/calib3d/test/
test_undistort_points.cpp
35
Point3f p(float(rand()) /
RAND_MAX
, float(rand()) /
RAND_MAX
,
36
float(rand()) /
RAND_MAX
);
/external/fio/t/
stest.c
34
size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (
RAND_MAX
+ 1.0)));
/external/opencv3/modules/cudalegacy/test/
TestDrawRects.cpp
112
h_rects.ptr()[i].x = (Ncv32u)(((1.0 * h_rects.ptr()[i].x) /
RAND_MAX
) * (this->width-2));
113
h_rects.ptr()[i].y = (Ncv32u)(((1.0 * h_rects.ptr()[i].y) /
RAND_MAX
) * (this->height-2));
114
h_rects.ptr()[i].width = (Ncv32u)(((1.0 * h_rects.ptr()[i].width) /
RAND_MAX
) * (this->width+10 - h_rects.ptr()[i].x));
115
h_rects.ptr()[i].height = (Ncv32u)(((1.0 * h_rects.ptr()[i].height) /
RAND_MAX
) * (this->height+10 - h_rects.ptr()[i].y));
/external/webrtc/webrtc/modules/video_coding/codecs/test/
packet_manipulator.cc
96
return (random_seed_ + 1.0) / (
RAND_MAX
+ 1.0);
/external/webrtc/webrtc/voice_engine/test/auto_test/
voe_stress_test.cc
250
action = rand() <= (
RAND_MAX
/ 2);
267
(static_cast<double> (
RAND_MAX
) + 1.0f) *
352
if (rnd < (
RAND_MAX
/ 2)) {
396
if (rnd < (
RAND_MAX
/ 2)) {
/frameworks/av/media/libstagefright/rtsp/
VideoSource.h
70
char x = (char)((double)rand() /
RAND_MAX
* 255);
Completed in 530 milliseconds
1
2
3
4
5
6
7