From: root AT zoltar DOT gatchaman DOT fr (Pierre MAZIERE) Newsgroups: comp.os.msdos.djgpp Subject: Random Number Date: 2 Nov 1998 13:24:37 GMT Organization: Anonymous Biochemists Lines: 24 Message-ID: <71kbql$a5$1@zoltar.gatchaman.fr> NNTP-Posting-Host: ppp-98-41.villette.club-internet.fr X-Trace: front1.grolier.fr 910013342 17714 194.158.98.41 (2 Nov 1998 13:29:02 GMT) NNTP-Posting-Date: 2 Nov 1998 13:29:02 GMT X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi everybody, I got a problem with the Random Number Generator: I use it this way int i; srandom(int seed) /* what is the meaning of this 'seed' ?*/ for( ... ) { i=random(); printf("%u \n",i); ... }; Then things: - Every time I launch the executable, the sequence of so called random numbers printed on screen is always the same ( so where is the randomized stuff ?) - How can I manage to have 'i' between 0 and MaxRandomNumber ? Thanx for answering -- --------------------- Pierre MAZIERE: peetah AT club-internet DOT fr