delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/23/11:05:04

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> <kml_3.707$Ne3 DOT 27975 AT dfiatx1-snr1 DOT gtei DOT net>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
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"
<NOSP AT Musenet@pineight.8m.com> wrote:

>"Werner Hartnagel" <code-x AT allgaeu DOT org> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019