Home
last modified time | relevance | path

Searched refs:rn1 (Results 1 – 13 of 13) sorted by relevance

/openbsd/src/games/hack/
Dhack.mkmaze.c126 for(x = rn1(8,11); x; x--) { in makemaz()
130 for(x = rn1(10,2); x; x--) { in makemaz()
136 for(x = rn1(5,7); x; x--) { in makemaz()
140 for(x = rn1(6,7); x; x--) { in makemaz()
144 for(x = rn1(6,7); x; x--) in makemaz()
Dhack.potion.c116 Invis += rn1(15,31); in dodrink()
136 nomul(-(rn1(10,25))); in dodrink()
177 losestr(rn1(4,3)); in dodrink()
185 Confusion += rn1(7,16); in dodrink()
205 Fast += rn1(10,100); in dodrink()
212 Blind += rn1(100,250); in dodrink()
Dhack.mkobj.c122 otmp->quan = (otmp->otyp <= ROCK) ? rn1(6,6) : 1; in mksobj()
157 otmp->spe = rn1(5, in mksobj()
Drnd.c69 rn1(int x, int y) in rn1() function
Dhack.makemon.c95 if(tmp >= ct) tmp = rn1(ct - ct/2, ct/2); in makemon()
227 tx = rn1(COLNO-3,2); in rloc()
Dhack.zap.c214 (void) bhit(u.dx,u.dy,rn1(8,6),0,bhitm,bhito,obj); in dozap()
487 range = rn1(7,7); in buzz()
675 tx = rn1(COLNO-3,2); in rloco()
Dhack.mhitu.c143 (void) hitu(mtmp,rn1(4,2)); in mhitu()
Dhack.trap.c193 u.utrap = rn1(6,2); in dotrap()
Dhack.mon.c640 losestr(rn1(3,3)); in poisoned()
642 losehp(rn1(10,6), pname); in poisoned()
Dhack.apply.c350 u.utrap = rn1(4,2); in dig()
Dhack.fight.c422 nomul((u.ulevel > 6 || rn2(4)) ? rn1(20,-21) : -200); in attack()
Dhack.h745 int rn1(int, int);
Dhack.mklev.c120 if(dlevel >= rn1(3, 26)) { /* there might be several mazes */ in makelevel()