Searched refs:rand_max (Results 1 – 2 of 2) sorted by relevance
325 const ecma_number_t rand_max = (ecma_number_t) RAND_MAX; in ecma_builtin_math_object_random() local328 return ecma_make_number_value (((ecma_number_t) rand ()) / rand_max * rand_max_min_1 / rand_max); in ecma_builtin_math_object_random()
1289 const double rand_max = RAND_MAX; in remap_to_palette_floyd() local1290 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()