Home
last modified time | relevance | path

Searched refs:rand_max (Results 1 – 2 of 2) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-math.c325 const ecma_number_t rand_max = (ecma_number_t) RAND_MAX; in ecma_builtin_math_object_random() local
328 return ecma_make_number_value (((ecma_number_t) rand ()) / rand_max * rand_max_min_1 / rand_max); in ecma_builtin_math_object_random()
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dlibimagequant.c1289 const double rand_max = RAND_MAX; in remap_to_palette_floyd() local
1290 thiserr[col].r = ((double) rand () - rand_max / 2.0) / rand_max / 255.0; in remap_to_palette_floyd()
1291 thiserr[col].g = ((double) rand () - rand_max / 2.0) / rand_max / 255.0; in remap_to_palette_floyd()
1292 thiserr[col].b = ((double) rand () - rand_max / 2.0) / rand_max / 255.0; in remap_to_palette_floyd()
1293 thiserr[col].a = ((double) rand () - rand_max / 2.0) / rand_max / 255.0; in remap_to_palette_floyd()