delorie.com/archives/browse.cgi | search |
From: | James W Sager Iii <sager+@andrew.cmu.edu> |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |