www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/03/09:25:17

Message-ID: <005501be7ddd$9b38fc00$75e004d0@bowman>
From: "robert bowman" <bowman AT montana DOT com>
To: <djgpp AT delorie DOT com>
References: <3705018e AT news DOT ismi DOT net>
Subject: Re: DJGPP's random functions.
Date: Sat, 3 Apr 1999 07:23:54 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

From: Ike Gingerich <drone AT ismi DOT net>

>   I noticed that the functions that come with DJGPP for generating random
numbers
>  always spit out the random numbers in the same sequence each time the
program
>  is run.  Does anyone have any suggestions on my code,  or possibly an
eayser way to
>  do this?

The easiest way is to type

info libc a rand

at the DOS prompt, and learn all about the arcane function, 'srand'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019