Home
last modified time | relevance | path

Searched refs:rund (Results 1 – 8 of 8) sorted by relevance

/netbsd/src/games/larn/
Dcreate.c256 for (i = 18 * rund(i - '0'); i > 0; i--) in cannedlevel()
274 mit = rund(8) + DEMONLORD; in cannedlevel()
359 item[i = tx + rund(xsize)][j = ty + (ysize - 1) * rund(2)] = OCLOSEDDOOR; in troom()
363 item[i = tx + (xsize - 1) * rund(2)][j = ty + rund(ysize)] = OCLOSEDDOOR; in troom()
421 fillmroom(rund(3), OBOOK, j); in makeobject()
422 fillmroom(rund(3), OALTAR, 0); in makeobject()
423 fillmroom(rund(3), OSTATUE, 0); in makeobject()
424 fillmroom(rund(3), OPIT, 0); in makeobject()
425 fillmroom(rund(3), OFOUNTAIN, 0); in makeobject()
427 fillmroom(rund(2), OTHRONE, 0); in makeobject()
[all …]
Dheader.h377 #define newscroll() (scprob[rund(81)])
379 #define newpotion() (potprob[rund(41)])
381 #define newleather() (nlpts[rund(c[HARDGAME]?13:15)])
383 #define newchain() (nch[rund(10)])
385 #define newplate() (nplt[rund(c[HARDGAME]?4:12)])
387 #define newdagger() (ndgg[rund(13)])
389 #define newsword() (nsw[rund(c[HARDGAME]?6:13)])
439 #define rund(x) ((((randx=randx*1103515245+12345)>>7)%(x)) ) macro
Dglobal.c78 raisemspells((int) rund(3)); in raiseexperience()
110 losemspells((int) rund(3)); /* lose spells */ in loseexperience()
624 i = rund(26); in stealsomething()
857 rund(int x) in rund() function
Dmonster.c1432 *i = rund(lev / 3 + 1); in newobject()
1439 *i = rund(lev / 4 + 1); in newobject()
1446 *i = rund(lev / 2 + 1); in newobject()
1449 *i = rund(lev / 3 + 1); in newobject()
1455 *i = rund(lev / 2 + 1); in newobject()
1622 i = rund(26); in spattack()
1655 return (spattack(spsel[rund(10)], xx, yy)); in spattack()
Dextern.h106 int rund(int);
Dobject.c745 c[rund(6)]++; in quaffpotion()
1199 i = rund((tmp = splev[lev]) ? tmp : 1); in readbook()
Ddiag.c121 rndcount[rund(16)]++; in diag()
Ddisplay.c504 dir = rund(9); /* if confused any dir */ in moveplayer()