delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/02/13:35:11

From: "Oleg Shamshura" <oleg AT channel12 DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Random numbers
Date: 2 Jun 1997 15:50:03 GMT
Organization: AO Rinet
Lines: 13
Distribution: world
Message-ID: <01bc6f75$42ccb520$6276dcc2@oleg.channel12.ru>
References: <01bc6ce9$72076bc0$363e63c3 AT 8652hvt73761> <338F40EE DOT 5244E66 AT alcyone DOT com> <339110F2 DOT 7537 AT nxus DOT com>
NNTP-Posting-Host: 194.220.118.98
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Try to use current timer value as a new seed.

Oleg

cjwhite <cjwhite AT nxus DOT com> wrote in article <339110F2 DOT 7537 AT nxus DOT com>...
> I have been playing around with random numbers for a few days using
> random() % (whatever) but the numbers to not appear to be random. It
> seems to only randomize when i recompile. I can manually enter a new
> seed, but i am using this for a game so i need to have the computer
> generate truly random numbers by itself.
> 
> Chris
> 

- Raw text -


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