From: James W Sager Iii Newsgroups: comp.os.msdos.djgpp Subject: Re: Random interger numbers Date: Tue, 24 Mar 1998 02:16:22 -0500 Organization: Junior, MCS Undeclared, Carnegie Mellon, Pittsburgh, PA Lines: 3 Message-ID: <4p5pr6e00WB_0u2m00@andrew.cmu.edu> References: <01bd56dd$5d636c80$0f02000a AT frank DOT mtsu DOT edu DOT frank DOT mtsu DOT edu> NNTP-Posting-Host: po9.andrew.cmu.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I believe rand()%n; will act as an n sided die. I didn't test the code, so if it doesn't work, bitch at me.