Searched refs:rand_num (Results 1 – 8 of 8) sorted by relevance
62 x = rand_num(WIDTH / 2) * 2 + 1; in makemaze()63 y = rand_num(HEIGHT / 2) * 2 + 1; in makemaze()93 dp = dirs[rand_num(NPERM)]; in dig()153 j = rand_num(i + 1); in dig_maze()222 *sp = rand_num(2) ? WALL4 : WALL5; in remap()
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()
319 x = rand_num(WIDTH - 1) + 1; in stplayer()320 y = rand_num(HEIGHT - 1) + 1; in stplayer()329 newpp->p_flying = rand_num(conf_flytime); in stplayer()330 newpp->p_flyx = 2 * rand_num(conf_flystep + 1) - conf_flystep; in stplayer()331 newpp->p_flyy = 2 * rand_num(conf_flystep + 1) - conf_flystep; in stplayer()365 x = rand_num(WIDTH - 1) + 1; in stplayer()366 y = rand_num(HEIGHT - 1) + 1; in stplayer()373 x = rand_num(WIDTH - 1) + 1; in stplayer()374 y = rand_num(HEIGHT - 1) + 1; in stplayer()420 switch (rand_num(4)) { in rand_dir()
491 x = rand_num(WIDTH - 1) + 1; in makeboots()492 y = rand_num(HEIGHT - 1) + 1; in makeboots()716 ammo_exploding = rand_num(pp->p_ammo); in zap()778 np->p_flying = rand_num(20); in zap()779 np->p_flyx = 2 * rand_num(6) - 5; in zap()780 np->p_flyy = 2 * rand_num(6) - 5; in zap()805 x = rand_num(WIDTH / 2) + WIDTH / 4; in zap()819 if (conf_drone && rand_num(100) < 2) { in zap()822 x = rand_num(WIDTH / 2) + WIDTH / 4; in zap()829 rand_num(MAXBOMB - conf_mindshot)], in zap()[all …]
265 if (rand_num(100) < conf_pshot_coll) { in move_normal_shot()272 if (rand_num(100) < conf_pgren_coll) { in move_normal_shot()318 switch (rand_num(4)) { in move_normal_shot()351 if (rand_num(100) < conf_pgren_catch) { in move_normal_shot()398 if (rand_num(100) < conf_pmiss) { in move_normal_shot()518 n = rand_num(count); in move_drone()561 if (rand_num(100) < conf_pdroneabsorb && opposite(bp->b_face, in move_drone()686 switch (rand_num(4)) { in move_flyer()726 rand_num(pp->p_damage / conf_fall_frac), FALL); in move_flyer()
231 int rand_num(int);
615 if (rand_num(100) < prob) in pickup()
38 int rand_num; in thread_function() local