Lines Matching refs:rn2
148 for (j = rn2(100), i = 0; (j -= shprobs[i]) >= 0; i++)
211 if (rn2(100) < dlevel && !m_at(sx, sy) &&
215 (let && rn2(10) < dlevel) ? let : ']';
232 for (sroom = &rooms[rn2(nroom)];; sroom++) {
241 if (has_upstairs(sroom) || (has_dnstairs(sroom) && rn2(3)))
243 if (sroom->doorct == 1 || !rn2(5))
267 mkgold((long) (10 + rn2(i)), sx, sy);
274 if (!moct && rn2(3)) {
280 if (!rn2(3))
290 int i = rn2(100), hd = rn2(dlevel);
306 sroom = &rooms[rn2(nroom)];
319 if (!eelct || !rn2(4)) {