Searched refs:rand_num (Results 1 – 9 of 9) sorted by relevance
276 x = rand_num(WIDTH - 1) + 1; in stplayer()277 y = rand_num(HEIGHT - 1) + 1; in stplayer()286 newpp->p_flying = rand_num(20); in stplayer()287 newpp->p_flyx = 2 * rand_num(6) - 5; in stplayer()288 newpp->p_flyy = 2 * rand_num(6) - 5; in stplayer()317 x = rand_num(WIDTH - 1) + 1; in stplayer()318 y = rand_num(HEIGHT - 1) + 1; in stplayer()327 x = rand_num(WIDTH - 1) + 1; in stplayer()328 y = rand_num(HEIGHT - 1) + 1; in stplayer()382 switch (rand_num(4)) { in rand_dir()
197 pp->p_flying += rand_num(10); in remove_wall()199 pp->p_flying = rand_num(20); in remove_wall()200 pp->p_flyx = 2 * rand_num(6) - 5; in remove_wall()201 pp->p_flyy = 2 * rand_num(6) - 5; in remove_wall()212 if (rand_num(100) == 0) in remove_wall()216 if (rand_num(100) == 0) /* one percent of the time */ in remove_wall()
105 dp = dirs[rand_num(NPERM)];132 j = rand_num(i + 1); in dig_maze()201 *sp = rand_num(2) ? WALL4 : WALL5; in remap()225 x = rand_num(WIDTH / 2) * 2 + 1; in makemaze()226 y = rand_num(HEIGHT / 2) * 2 + 1; in makemaze()
520 x = rand_num(WIDTH - 1) + 1; in makeboots()521 y = rand_num(HEIGHT - 1) + 1; in makeboots()708 n = rand_num(pp->p_ammo); in zap()709 x = rand_num(pp->p_ammo); in zap()755 np->p_flying = rand_num(20); in zap()756 np->p_flyx = 2 * rand_num(6) - 5; in zap()757 np->p_flyy = 2 * rand_num(6) - 5; in zap()778 if (rand_num(100) < volcano / 50) { in zap()780 x = rand_num(WIDTH / 2) + WIDTH / 4; in zap()781 y = rand_num(HEIGHT / 2) + HEIGHT / 4; in zap()[all …]
215 if (rand_num(100) < 5) { in move_normal_shot()221 if (rand_num(100) < 10) { in move_normal_shot()272 switch (rand_num(4)) { in move_normal_shot()305 if (rand_num(100) < 10) { in move_normal_shot()331 if (rand_num(100) < 5) { in move_normal_shot()452 n = rand_num(count); in move_drone()494 if (rand_num(100) < 1 && in move_drone()599 switch (rand_num(4)) { in move_flyer()637 rand_num(pp->p_damage / 5), FALL); in move_flyer()
176 int rand_num(int);
568 if (rand_num(100) < prob) in pickup()
275 uint8_t rand_num[8]; member282 uint8_t rand_num[8]; member
38 int rand_num; in thread_function() local