* Copyright (c) 1982 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)roll.c 5.1 (Berkeley) %G%";
* This routine rolls ndie nside-sided dice.
* @(#)roll.c 1.1 (Berkeley) 4/1/82
extern unsigned int random();
tot
+= random() % nsides
+ 1;