Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!umich!vela!jmwojtal From: jmwojtal@vela.acs.oakland.edu (Wojo) Newsgroups: comp.lang.c Subject: I'm confused about this Keywords: getpid(), srand Message-ID: <3945@vela.acs.oakland.edu> Date: 20 Nov 90 14:43:06 GMT Reply-To: jmwojtal@vela.acs.oakland.edu (Wojo) Organization: Oakland University, Rochester MI Lines: 18 References: I got this C program and this part I don't understand: int getpid(); long now; now = time(&now) / rand(); srand(getpid() + (int)((now >> 16) + now + time(&now))); What does "srand" do to be exact? It doesn't bring a value back? "getpid()" is declared, but the function is not in the program. -- ************************************************************************ Jeff Wojtalewicz (Wojo) jmwojtal@vela.acs.oakland.edu Oakland University Start Hacking ************************************************************************