rand_num
x = rand_num(WIDTH - 1) + 1;
y = rand_num(HEIGHT - 1) + 1;
newpp->p_flying = rand_num(conf_flytime);
newpp->p_flyx = 2 * rand_num(conf_flystep + 1) - conf_flystep;
newpp->p_flyy = 2 * rand_num(conf_flystep + 1) - conf_flystep;
x = rand_num(WIDTH - 1) + 1;
y = rand_num(HEIGHT - 1) + 1;
x = rand_num(WIDTH - 1) + 1;
y = rand_num(HEIGHT - 1) + 1;
switch (rand_num(4)) {
x = rand_num(WIDTH - 1) + 1;
y = rand_num(HEIGHT - 1) + 1;
ammo_exploding = rand_num(pp->p_ammo);
expl_charge = rand_num(ammo_exploding + 1);
np->p_flying = rand_num(20);
np->p_flyx = 2 * rand_num(6) - 5;
np->p_flyy = 2 * rand_num(6) - 5;
if (conf_volcano && rand_num(100) < volcano /
x = rand_num(WIDTH / 2) + WIDTH / 4;
y = rand_num(HEIGHT / 2) + HEIGHT / 4;
if (conf_drone && rand_num(100) < 2) {
x = rand_num(WIDTH / 2) + WIDTH / 4;
y = rand_num(HEIGHT / 2) + HEIGHT / 4;
rand_num(MAXBOMB - conf_mindshot)],
if (rand_num(100) < prob)
pp->p_flying += rand_num(conf_flytime / 2);
pp->p_flying = rand_num(conf_flytime);
pp->p_flyx = 2 * rand_num(conf_flystep + 1) -
pp->p_flyy = 2 * rand_num(conf_flystep + 1) -
if (conf_random && rand_num(100) < conf_prandom)
if (conf_reflect && rand_num(100) == conf_preflect)
j = rand_num(i + 1);
*sp = rand_num(2) ? WALL4 : WALL5;
x = rand_num(WIDTH / 2) * 2 + 1;
y = rand_num(HEIGHT / 2) * 2 + 1;
dp = dirs[rand_num(NPERM)];
int rand_num(int);
if (rand_num(100) < conf_pshot_coll) {
if (rand_num(100) < conf_pgren_coll) {
switch (rand_num(4)) {
if (rand_num(100) < conf_pgren_catch) {
if (rand_num(100) < conf_pmiss) {
n = rand_num(count);
if (rand_num(100) < conf_pdroneabsorb && opposite(bp->b_face,
switch (rand_num(4)) {
rand_num(pp->p_damage / conf_fall_frac), FALL);