Symbol: ranf
games/trek/abandon.c
134
i = ranf(Now.bases);
games/trek/abandon.c
144
Ship.sectx = Etc.starbase.x + ranf(3) - 1;
games/trek/abandon.c
147
Ship.secty = Etc.starbase.y + ranf(3) - 1;
games/trek/attack.c
146
if (hit >= (15 - Game.skill) * (25 - ranf(12)))
games/trek/attack.c
150
cas = ranf(1000);
games/trek/attack.c
155
extradm = (hit * Param.damfac[l]) / (75 + ranf(25)) + 0.5;
games/trek/autover.c
70
course = ranf(360);
games/trek/capture.c
126
i = ranf(Etc.nkling);
games/trek/capture.c
91
if (i > ranf(100))
games/trek/capture.c
95
i = ranf(Param.klingcrew);
games/trek/dumpme.c
57
Ship.quadx = ranf(NQUADS);
games/trek/dumpme.c
58
Ship.quady = ranf(NQUADS);
games/trek/dumpme.c
59
Ship.sectx = ranf(NSECTS);
games/trek/dumpme.c
60
Ship.secty = ranf(NSECTS);
games/trek/events.c
147
i = ranf(Now.klings) + 1;
games/trek/events.c
170
Ship.sectx = ranf(NSECTS);
games/trek/events.c
171
Ship.secty = ranf(NSECTS);
games/trek/events.c
263
ix = ranf(NQUADS);
games/trek/events.c
264
iy = ranf(NQUADS);
games/trek/help.c
139
dx = Etc.starbase.x + ranf(3) - 1;
games/trek/help.c
142
dy = Etc.starbase.y + ranf(3) - 1;
games/trek/initquad.c
142
i = ranf(NSECTS);
games/trek/initquad.c
143
j = ranf(NSECTS);
games/trek/klmove.c
84
if (ranf(i) >= Param.moveprob[2 * Move.newquad + fl])
games/trek/klmove.c
87
motion = ranf(75) - 25;
games/trek/klmove.c
90
dx = Ship.sectx - k->x + ranf(3) - 1;
games/trek/klmove.c
91
dy = Ship.secty - k->y + ranf(3) - 1;
games/trek/nova.c
59
if (ranf(100) < 15)
games/trek/nova.c
64
if (ranf(100) < 5)
games/trek/nova.c
71
if (ranf(4) != 0)
games/trek/ram.c
84
i = 10 + ranf(20 * Game.skill);
games/trek/ram.c
92
if (ranf(100) < 20)
games/trek/setup.c
126
Param.date = Now.date = (ranf(20) + 20) * 100;
games/trek/setup.c
203
Ship.sectx = ranf(NSECTS);
games/trek/setup.c
204
Ship.secty = ranf(NSECTS);
games/trek/setup.c
221
q->stars = ranf(9) + 1;
games/trek/setup.c
222
q->holes = ranf(3) - q->stars / 5;
games/trek/setup.c
233
i = ranf(NQUADS);
games/trek/setup.c
234
j = ranf(NQUADS);
games/trek/setup.c
245
ix = ranf(NQUADS);
games/trek/setup.c
246
iy = ranf(NQUADS);
games/trek/setup.c
267
klump = ranf(4) + 1;
games/trek/setup.c
272
ix = ranf(NQUADS);
games/trek/setup.c
273
iy = ranf(NQUADS);
games/trek/setup.c
99
Param.bases = Now.bases = ranf(6 - Game.skill) + 2;
games/trek/snova.c
75
qx = ranf(NQUADS);
games/trek/snova.c
76
qy = ranf(NQUADS);
games/trek/snova.c
84
n = ranf(q->stars);
games/trek/torped.c
175
Etc.klingon[k].power -= 500 + ranf(501);
games/trek/torped.c
237
if (ranf(2))
games/trek/trek.h
454
int ranf(int);
games/trek/warp.c
114
if (Ship.warp > 6.0 && ranf(100) < 20 + 15 * (Ship.warp - 6.0))
games/trek/warp.c
138
if (ranf(100) >= 100 * dist)
games/trek/warp.c
145
percent = ranf(100);