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.3 2006/08/21 19:45:32 pavalos Exp $ */
7 #define RND(x) (random() % x)
32 while(n
--) tmp
+= RND(x
);