Lines Matching refs:rnd
203 u32 rnd = get_random_u32(); in loss_4state() local
217 if (rnd < clg->a4) { in loss_4state()
220 } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { in loss_4state()
223 } else if (clg->a1 + clg->a4 < rnd) { in loss_4state()
229 if (rnd < clg->a5) { in loss_4state()
238 if (rnd < clg->a3) in loss_4state()
240 else if (clg->a3 < rnd && rnd < clg->a2 + clg->a3) { in loss_4state()
242 } else if (clg->a2 + clg->a3 < rnd) { in loss_4state()
324 u32 rnd; in tabledist() local
329 rnd = get_crandom(state); in tabledist()
333 return ((rnd % (2 * (u32)sigma)) + mu) - sigma; in tabledist()
335 t = dist->table[rnd % dist->size]; in tabledist()