From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp References: <383ADE59 DOT F368C980 AT allgaeu DOT org> Subject: Re: Random Numbers Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: X-Trace: /Kkf2LVZ0BTOpoZSBehNQp9H1QfnZ/aLGE+kb8p3iJCBHO0kEFA+cWrVTNdjlacP+Ohk7m7NzxGz!y2RJIKl50zsavqnjqubu+tU6Q6SnEvEr4co5QClpqPttctb984GkHBFiNuPs1fu5k2GFfg== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 Nov 1999 00:38:40 GMT Distribution: world Date: Tue, 23 Nov 1999 00:38:40 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "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. Damian Yerrick