Searched refs:rand_num (Results 1 – 7 of 7) sorted by relevance
204 pp->p_flying += rand_num(conf_flytime / 2); in remove_wall()206 pp->p_flying = rand_num(conf_flytime); in remove_wall()207 pp->p_flyx = 2 * rand_num(conf_flystep + 1) - in remove_wall()209 pp->p_flyy = 2 * rand_num(conf_flystep + 1) - in remove_wall()218 if (conf_random && rand_num(100) < conf_prandom) in remove_wall()220 if (conf_reflect && rand_num(100) == conf_preflect) in remove_wall()
337 x = rand_num(WIDTH - 1) + 1; in stplayer()338 y = rand_num(HEIGHT - 1) + 1; in stplayer()347 newpp->p_flying = rand_num(conf_flytime); in stplayer()348 newpp->p_flyx = 2 * rand_num(conf_flystep + 1) - conf_flystep; in stplayer()349 newpp->p_flyy = 2 * rand_num(conf_flystep + 1) - conf_flystep; in stplayer()383 x = rand_num(WIDTH - 1) + 1; in stplayer()384 y = rand_num(HEIGHT - 1) + 1; in stplayer()391 x = rand_num(WIDTH - 1) + 1; in stplayer()392 y = rand_num(HEIGHT - 1) + 1; in stplayer()438 switch (rand_num(4)) { in rand_dir()
61 x = rand_num(WIDTH / 2) * 2 + 1; in makemaze()62 y = rand_num(HEIGHT / 2) * 2 + 1; in makemaze()98 j = rand_num(i + 1); in dig_maze()167 *sp = rand_num(2) ? WALL4 : WALL5; in remap()
495 x = rand_num(WIDTH - 1) + 1; in makeboots()496 y = rand_num(HEIGHT - 1) + 1; in makeboots()720 ammo_exploding = rand_num(pp->p_ammo); in zap()723 expl_charge = rand_num(ammo_exploding + 1); in zap()782 np->p_flying = rand_num(20); in zap()783 np->p_flyx = 2 * rand_num(6) - 5; in zap()784 np->p_flyy = 2 * rand_num(6) - 5; in zap()805 if (conf_volcano && rand_num(100) < volcano / in zap()809 x = rand_num(WIDTH / 2) + WIDTH / 4; in zap()810 y = rand_num(HEIGHT / 2) + HEIGHT / 4; in zap()[all …]
267 if (rand_num(100) < conf_pshot_coll) { in move_normal_shot()274 if (rand_num(100) < conf_pgren_coll) { in move_normal_shot()320 switch (rand_num(4)) { in move_normal_shot()353 if (rand_num(100) < conf_pgren_catch) { in move_normal_shot()400 if (rand_num(100) < conf_pmiss) { in move_normal_shot()520 n = rand_num(count); in move_drone()563 if (rand_num(100) < conf_pdroneabsorb && opposite(bp->b_face, in move_drone()688 switch (rand_num(4)) { in move_flyer()728 rand_num(pp->p_damage / conf_fall_frac), FALL); in move_flyer()
233 int rand_num(int);
615 if (rand_num(100) < prob) in pickup()