delorie.com/archives/browse.cgi | search |
Xref: | news2.mv.net comp.os.msdos.djgpp:6172 |
From: | jlouwere AT galaxy DOT csc DOT calpoly DOT edu (Jan Louwerens) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Random Numbers |
Date: | 19 Jul 1996 17:21:05 GMT |
Organization: | Cal Poly Computer Science Dept. |
Lines: | 11 |
Message-ID: | <4sog61$rh3@waldorf.csc.calpoly.edu> |
References: | <4sob0h$ens AT thrush DOT sover DOT net> |
NNTP-Posting-User: | jlouwere AT galaxy DOT csc DOT calpoly DOT edu |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Vatara (mberube AT sover DOT net) wrote: : Could someone please explain how to do random numbers. : TIA I just use srand(time(NULL)) to seed the random number generator and random() to get a random number. These are from stdlib.h so look there for more info. JL
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |