delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/08/22:30:36

From: "C.Rothwell" <enquiries AT aditfree DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: PROBLEM WITH FUNCTION RAND()
Date: Sat, 09 May 1998 03:22:42 +0100
Organization: JSW Project
Lines: 13
Message-ID: <3553BDF1.5E607F2@aditfree.com>
References: <6ivreu$jo5$2 AT talia DOT mad DOT ibernet DOT es>
Reply-To: enquiries AT aditfree DOT com
NNTP-Posting-Host: p62.nas1.is3.u-net.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


JOA wrote:

> Hello.
> When i make a program (i want print a rand number into the screen) whit this
> function or random function,and execute it a few times the random numbers
> donīt change.
>

You could be clever and use the system clock to get a random number that was
diffrent every time you ran the program.

- Raw text -


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