HomeSort by: relevance | last modified time | path
    Searched refs:get_rand (Results 1 - 16 of 16) sorted by relevancy

  /src/games/rogue/
trap.c 110 bear_trap = get_rand(4, 7);
151 n = get_rand(0, 2);
153 n = get_rand(1, 2);
155 n = get_rand(2, 3);
157 n = get_rand(2, 4);
159 n = get_rand(3, 5);
161 n = get_rand(5, MAX_TRAPS);
164 traps[i].trap_type = get_rand(0, (TRAPS - 1));
168 row = get_rand((rooms[party_room].top_row+1),
170 col = get_rand((rooms[party_room].left_col+1)
    [all...]
random.c 119 get_rand(int x, int y) function in typeref:typename:int
139 return(get_rand(1, 100) <= percentage);
object.c 185 n = coin_toss() ? get_rand(2, 4) : get_rand(3, 5);
215 row = get_rand(rooms[i].top_row+1,
217 col = get_rand(rooms[i].left_col+1,
237 obj->quantity = get_rand((2 * cur_level), (16 * cur_level));
399 percent = get_rand(1, 91);
424 percent = get_rand(0, 91);
462 percent = get_rand(1, 118);
535 obj->which_kind = get_rand(0, (WEAPONS - 1));
539 obj->quantity = get_rand(3, 15)
    [all...]
level.c 124 must_1 = get_rand(0, 5);
274 top_row = get_rand(MIN_ROW, MIN_ROW+5);
275 bottom_row = get_rand(DROWS-7, DROWS-2);
276 left_col = get_rand(0, 10);
277 right_col = get_rand(DCOLS-11, DCOLS-1);
281 height = get_rand(4, (bottom_row - top_row + 1));
282 width = get_rand(7, (right_col - left_col - 2));
284 row_offset = get_rand(0, ((bottom_row - top_row) - height + 1));
285 col_offset = get_rand(0, ((right_col - left_col) - width + 1));
405 *col = get_rand(rm->left_col+wall_width
    [all...]
use.c 119 rogue.str_current -= get_rand(1, 3);
139 halluc += get_rand(500, 800);
163 levitate += get_rand(15, 30);
168 haste_self += get_rand(11, 21);
415 moves = get_rand(950, 1150);
422 moves = get_rand(750, 950);
504 addch(get_rand('A', 'Z'));
548 i = get_rand(2, 5);
566 blind += get_rand(500, 800);
594 return(id_potions[get_rand(0, POTIONS-1)].title)
    [all...]
zap.c 179 (void)gr_monster(monster, get_rand(0, MONSTERS-1));
288 btime = get_rand(3, 6);
347 damage = get_rand((rogue.hp_current / 3), rogue.hp_max);
361 monster->nap_length = get_rand(3, 6);
379 damage = get_rand(3, (3 * rogue.exp));
392 dir = get_rand(0, DIRS-1);
spec_hit.c 140 n = get_rand(4, 8);
164 amount = get_rand((cur_level * 10), (cur_level * 30));
201 n = get_rand(0, MAX_PACK_COUNT);
258 obj->quantity = get_rand((cur_level * 15), (cur_level * 30));
420 rogue.exp_points = level_points[rogue.exp-2] - get_rand(9, 29);
440 n = get_rand(1, 3); /* 1 Hp, 2 Str, 3 both */
ring.c 214 ring->which_kind = get_rand(0, (RINGS - 1));
240 while ((ring->class = (get_rand(0, 4) - 2)) == 0)
room.c 259 r = get_rand(MIN_ROW, DROWS-2);
260 c = get_rand(0, DCOLS-1);
278 i = get_rand(0, MAXROOMS-1);
295 n = get_rand(5, 10);
301 row = get_rand(rooms[rn].top_row+1,
303 col = get_rand(rooms[rn].left_col+1,
438 r = get_rand(0, MAXROOMS-1);
monster.c 152 n = get_rand(4, 6);
171 mn = get_rand(0, MONSTERS-1);
264 row = get_rand(rooms[rn].top_row+1,
266 col = get_rand(rooms[rn].left_col+1,
399 NEXT_TRY: n = get_rand(0, 5);
443 monster->trow = get_rand(1, (DROWS - 2));
444 monster->tcol = get_rand(0, (DCOLS - 1));
608 ch = get_rand('A', 'Z') - 'A';
737 r = get_rand(0, 12);
824 r = get_rand(0, 8)
    [all...]
inventory.c 433 j = get_rand(0, (POTIONS - 1));
434 k = get_rand(0, (POTIONS - 1));
450 sylls = get_rand(2, 5);
454 s = get_rand(1, (MAXSYLLABLES-1));
686 j = get_rand(0, WAND_MATERIALS-1);
698 j = get_rand(0, GEMS-1);
throw.c 276 o = get_rand(1, 8);
279 x = get_rand(0, 8);
hit.c 201 total += get_rand(1, d);
462 monster->moves_confused += get_rand(12, 22);
move.c 396 n = get_rand(0, (FAINT - rogue.moves_left));
519 d = get_rand(1, 8);
init.c 189 obj->quantity = get_rand(25, 35);
rogue.h 501 int get_rand(int, int);

Completed in 17 milliseconds