Mail Archives: djgpp/1999/11/23/11:05:04
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 -