Searched refs:nmults (Results 1 – 1 of 1) sorted by relevance
/third_party/ltp/lib/ |
D | random_range.c | 280 int r, nmults, orig_min, orig_max, orig_mult, tmp; in random_range() local 338 nmults = ((max - min) / mult) + 1; in random_range() 345 return (long)(min + (((long)lrand48() % nmults) * mult)); in random_range() 353 return (long)(min + ((randnum % nmults) * mult)); in random_range() 357 return (min + ((lrand48() % nmults) * mult)); in random_range() 367 long r, nmults, orig_min, orig_max, orig_mult, tmp; in random_rangel() local 425 nmults = ((max - min) / mult) + 1; in random_rangel() 432 return (long)(min + (((long)lrand48() % nmults) * mult)); in random_rangel() 440 return (long)(min + ((randnum % nmults) * mult)); in random_rangel() 444 return (min + ((lrand48() % nmults) * mult)); in random_rangel() [all …]
|