Home | History | Annotate | Download | only in huntd

Lines Matching defs:rand_num

520 		x = rand_num(WIDTH - 1) + 1;
521 y = rand_num(HEIGHT - 1) + 1;
708 n = rand_num(pp->p_ammo);
709 x = rand_num(pp->p_ammo);
755 np->p_flying = rand_num(20);
756 np->p_flyx = 2 * rand_num(6) - 5;
757 np->p_flyy = 2 * rand_num(6) - 5;
778 if (rand_num(100) < volcano / 50) {
780 x = rand_num(WIDTH / 2) + WIDTH / 4;
781 y = rand_num(HEIGHT / 2) + HEIGHT / 4;
792 if (rand_num(100) < 2) {
794 x = rand_num(WIDTH / 2) + WIDTH / 4;
795 y = rand_num(HEIGHT / 2) + HEIGHT / 4;
799 rand_num(MAXBOMB - MINDSHOT)],
882 * rand_num:
886 rand_num(int range)