Searched refs:rn2 (Results 26 - 36 of 36) sorted by relevance

12

/netbsd-current/games/hack/
H A Dhack.main.c375 (!(Fast & ~INTRINSIC) && (!Fast || rn2(3)))) {
377 if (!rn2(70))
411 if (Teleportation && !rn2(85))
H A Dhack.o_init.c132 i = first + rn2(j + 1 - first);
146 int prob = rn2(100);
H A Dhack.apply.c166 if (tmp < 9 && !mtmp->isshk && rn2(4)) {
168 if (rn2(4))
345 dig_effort += 10 + abon() + uwep->spe + rn2(5);
H A Dhack.engrave.c142 cnt = rn2(1 + 50 / (cnt + 1)) ? 0 : 1;
147 pos = rn2(lth);
H A Dhack.shk.c277 == (rn2(3) == 0))
303 if (rt != ZOO || !rn2(3))
525 || rn2(3)) {
1066 if ((!appr && !rn2(++chcnt)) ||
1084 if (hitmm(shkp, mtmp) == 1 && rn2(3) &&
H A Dhack.objnam.c640 let = wrpsym[rn2(sizeof(wrpsym))];
665 else if (typ == WAN_WISHING && rn2(10))
666 spe = (rn2(10) ? -1 : 0);
H A Dhack.cmd.c323 int x = rn2(8);
H A Dhack.worm.c237 if (rn2(3) || !getwn(mtmp2)) {
H A Dextern.h537 int rn2(int);
H A Dhack.invent.c939 if (!rn2(2))
H A Dhack.c218 if ((u.dx && u.dy) || !rn2(5))

Completed in 108 milliseconds

12