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
149
) sorted by null
1
2
3
4
5
6
/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/lib/tsan/lit_tests/
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
)
/system/core/libcutils/
ashmem-host.c
50
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
51
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
52
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
53
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
54
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
55
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
56
txt[(int) ((sizeof(txt) - 1) * (rand() / (
RAND_MAX
+ 1.0)))],
57
txt[(int) ((sizeof(txt) - 1) * (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/srtp/crypto/include/
kernel_compat.h
69
#define
RAND_MAX
32767
75
return temp % (
RAND_MAX
+1);
/external/ceres-solver/internal/ceres/
random.h
51
return r /
RAND_MAX
;
/frameworks/av/libvideoeditor/osal/src/
M4OSA_Random.c
85
(*out_value) = (((*out_value) * max_value) / ((M4OSA_UInt32)
RAND_MAX
+ 1)) + 1;
/external/chromium/sdch/open-vcdiff/src/
testing.h
165
double rand_limit =
RAND_MAX
; // The maximum possible value
167
// value is multiplied by (
RAND_MAX
+ 1) each iteration. This factor will be
169
value = (value * (static_cast<uint64_t>(
RAND_MAX
) + 1)) + rand();
170
rand_limit = (rand_limit * (
RAND_MAX
+ 1.0)) +
RAND_MAX
;
/external/chromium_org/sdch/open-vcdiff/src/
testing.h
165
double rand_limit =
RAND_MAX
; // The maximum possible value
167
// value is multiplied by (
RAND_MAX
+ 1) each iteration. This factor will be
169
value = (value * (static_cast<uint64_t>(
RAND_MAX
) + 1)) + rand();
170
rand_limit = (rand_limit * (
RAND_MAX
+ 1.0)) +
RAND_MAX
;
/external/open-vcdiff/src/
testing.h
165
double rand_limit =
RAND_MAX
; // The maximum possible value
167
// value is multiplied by (
RAND_MAX
+ 1) each iteration. This factor will be
169
value = (value * (static_cast<uint64_t>(
RAND_MAX
) + 1)) + rand();
170
rand_limit = (rand_limit * (
RAND_MAX
+ 1.0)) +
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/chromium_org/native_client_sdk/src/examples/demo/pi_generator/
pi_generator.cc
42
double x = static_cast<double>(rand()) /
RAND_MAX
;
43
double y = static_cast<double>(rand()) /
RAND_MAX
;
/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);
/frameworks/av/media/libstagefright/rtsp/
VideoSource.h
70
char x = (char)((double)rand() /
RAND_MAX
* 255);
/external/eigen/unsupported/test/
FFTW.cpp
14
std::complex<T> RandomCpx() { return std::complex<T>( (T)(rand()/(T)
RAND_MAX
- .5), (T)(rand()/(T)
RAND_MAX
- .5) ); }
92
tbuf[k]= (T)( rand()/(double)
RAND_MAX
- .5);
155
inbuf[k]= Complex( (T)(rand()/(double)
RAND_MAX
- .5), (T)(rand()/(double)
RAND_MAX
- .5) );
/external/chromium_org/third_party/opus/src/celt/tests/
test_unit_entropy.c
174
ft=rand()/((
RAND_MAX
>>(rand()%11U))+1U)+10;
175
sz=rand()/((
RAND_MAX
>>(rand()%9U))+1U);
235
sz=rand()/((
RAND_MAX
>>(rand()%9U))+1U);
243
data[j]=rand()/((
RAND_MAX
>>1)+1);
245
enc_method[j]=rand()/((
RAND_MAX
>>2)+1);
282
dec_method=rand()/((
RAND_MAX
>>2)+1);
/external/chromium_org/content/browser/speech/endpointer/
endpointer_unittest.cc
48
float randNum = static_cast<float>(rand() - (
RAND_MAX
/ 2)) /
49
static_cast<float>(
RAND_MAX
);
/external/chromium_org/native_client_sdk/src/examples/demo/flock/
flock.cc
47
double dx = (double) rand() / (double)
RAND_MAX
;
48
double dy = (double) rand() / (double)
RAND_MAX
;
/external/srec/tools/thirdparty/OpenFst/fst/lib/
randgen.h
49
double r = rand()/(
RAND_MAX
+ 1.0);
79
double r = rand()/(
RAND_MAX
+ 1.0);
Completed in 539 milliseconds
1
2
3
4
5
6