From: chris_mears AT softhome DOT net (Chris Mears) Newsgroups: comp.os.msdos.djgpp Subject: Re: Random Numbers Organization: CHOAM Message-ID: <383a58bd.2848900@news.bigpond.com> References: <383ADE59 DOT F368C980 AT allgaeu DOT org> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 Date: Tue, 23 Nov 1999 09:08:12 GMT NNTP-Posting-Host: 139.134.194.169 X-Trace: newsfeeds.bigpond.com 943347802 139.134.194.169 (Tue, 23 Nov 1999 20:03:22 EST) NNTP-Posting-Date: Tue, 23 Nov 1999 20:03:22 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 23 Nov 1999 00:38:40 GMT, "Damian Yerrick" wrote: >"Werner Hartnagel" wrote in message >news:383ADE59 DOT F368C980 AT allgaeu DOT org... >> Hello, >> >> How can I get Random Numbers between 1...79? > >Before you make any random numbers, seed the algorithm with > srand(time(0)); >in c that'd be > int x; > x = (rand() % 79) + 1; > >Anything that doesn't look DJGPP-specific can also go to >comp.lang.c or one of the "learn C" groups (name?) >but they get really ticked when you mention OS specifics. C: news:comp.lang.c C++: news:comp.lang.c++ Learning (inclusive of both languages, which IMHO is a bad idea) news:alt.comp.lang.learn.c-c++ Have a very nice day. :) -- Chris Mears