Reply-To: From: "Arthur" To: "DJGPP Mailing List" Subject: RE: Newbie questions... Date: Mon, 3 Aug 1998 12:17:39 +0100 Message-ID: <000101bdbed0$533b1d60$e14e08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Importance: Normal In-Reply-To: <01bdbe8e$78f07560$b9ba56d1@livivie.pinecrest.edu> Precedence: bulk > First off, how do you pass an int array as a parameter to a function? void function(*array) { do_stuff(); } int main(void) { int array[5]; function(array); } > Second, how come both rand() and random() generate the same numbers again > and again.. I can't find any sort of seed function to fix this. Is there > one or am i using it wrong? Look up the srand() function. James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819