From: dmt AT bigfoot DOT com (Jeff W./DMT) Newsgroups: comp.os.msdos.djgpp Subject: random numbers? Date: Sun, 18 Jan 1998 22:48:08 GMT Organization: ZipLink -- America's Hottest ISP Lines: 4 Message-ID: <34c2863d.422495@news.ziplink.net> NNTP-Posting-Host: chi-ip-1-213.ziplink.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk how do I get a random number from 0 to N in DJGPP? I tried looking up: random, srandom, and rand but none seem to help. SRand says it returns a number from 0 to RAND_MAX, and random returns a numbre from 0 to MAX_INT. Neither is what I'm looking for. Thanks for your help.