Path: utzoo!utgpu!water!watmath!clyde!rutgers!mailrus!ames!umd5!brl-adm!adm!lamonts@Sds.Sdsc.EDU From: lamonts@Sds.Sdsc.EDU (Steve Lamont) Newsgroups: comp.lang.c Subject: Re: Random Numbers Message-ID: <11744@brl-adm.ARPA> Date: 10 Feb 88 14:33:57 GMT Sender: news@brl-adm.ARPA Lines: 24 BECMUG Guests says > I've just learned C, and am thinking of good ways to generate random > numbers. Does anyone have any suggestions? Try the function rand(). For example: ... int rand_no; rand_no = rand(); ... spl ---------------------------------------- Internet: LAMONTS@SDS.SDSC.EDU Bitnet: LAMONTS@SDSC Span: SDSC::LAMONTS (27.1) USPS: Steve Lamont San Diego Supercomputer Center P.O. Box 85608 San Diego, CA 92138 AT&T: 619.534.5126