delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/01/07:52:48

From: Martin DOT Stromberg AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro and random numbers.
Date: 1 Sep 1999 07:46:05 GMT
Organization: Ericsson Erisoft AB, Sweden
Message-ID: <7qiljt$1qi$1@antares.lu.erisoft.se>
References: <7qhljj$245$3 AT news6 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: spica-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tom Morton (tmorton AT yikesstation DOT freeserve DOT co DOT uk) wrote:
: Hello fellow human beings,

: I'm writing a game with allegro and djgpp and it requires a random
: number generator that can have it's seed saved and changed. Until
: now I have been using the rand() and srand() functions but I need
: to be able to store the state of the random number generator.
: Anyone know if there are any decent RNGs for djgpp/allegro?

You could wait for libc 2.03 which will include the *rand48() functions. 
Some of these lets you have your own state. Alas, we don't know when libc 
2.03 will be released.


Pink Floyd, The Division Bell,

							MartinS

- Raw text -


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