Remove the select_curproc vector from the usched structure. It is used
[dragonfly.git] / games / hack / rnd.c
blobeb10fa6d064b9a198731b8692673729b26df38e2
1 /* rnd.c - version 1.0.2 */
2 /* $FreeBSD: src/games/hack/rnd.c,v 1.5 1999/11/16 10:26:38 marcel Exp $ */
3 /* $DragonFly: src/games/hack/rnd.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ */
5 #include <stdlib.h>
7 #define RND(x) (random() % x)
9 rn1(x,y)
10 int x,y;
12 return(RND(x)+y);
15 rn2(x)
16 int x;
18 return(RND(x));
21 rnd(x)
22 int x;
24 return(RND(x)+1);
27 d(n,x)
28 int n,x;
30 int tmp = n;
32 while(n--) tmp += RND(x);
33 return(tmp);