delorie.com/archives/browse.cgi | search |
From: | murray AT cdrom DOT com (Murray Stokely) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | random #'s |
Date: | Fri, 29 Nov 1996 18:09:01 GMT |
Organization: | ACiD Productions |
Lines: | 6 |
Message-ID: | <329f264b.60430893@nntp.southeast.net> |
Reply-To: | murray AT cdrom DOT com |
NNTP-Posting-Host: | ts3-029.southeast.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Whats the best way to generate a random number from 0 to 500? I tried the x=random(500) (borland way) and i got some huge number. After reading up on it I found out that random() always returns a # between 0 and MAX_INT_SIZE how do i create a much smaller random #?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |