Home
last modified time | relevance | path

Searched refs:rand_num (Results 1 – 9 of 9) sorted by relevance

/netbsd/src/games/hunt/huntd/
Danswer.c276 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()
Dexpl.c197 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()
Dmakemaze.c105 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()
Ddriver.c520 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 …]
Dshots.c215 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()
Dhunt.h176 int rand_num(int);
Dexecute.c568 if (rand_num(100) < prob) in pickup()
/netbsd/src/sys/netbt/
Dhci_le.h275 uint8_t rand_num[8]; member
282 uint8_t rand_num[8]; member
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/
Dprint-threads.c38 int rand_num; in thread_function() local