HomeSort by: relevance | last modified time | path
    Searched defs:rund (Results 1 - 2 of 2) sorted by relevancy

  /src/games/larn/
global.c 78 raisemspells((int) rund(3));
110 losemspells((int) rund(3)); /* lose spells */
624 i = rund(26);
849 /* macros to generate random numbers 1<=rnd(N)<=N 0<=rund(N)<=N-1 */
857 rund(int x) function in typeref:typename:int
header.h 377 #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)])
437 /* macros to generate random numbers 1<=rnd(N)<=N 0<=rund(N)<=N-1 */
439 #define rund(x) ((((randx=randx*1103515245+12345)>>7)%(x)) ) macro

Completed in 13 milliseconds