Mail Archives: djgpp/1999/09/01/07:52:48
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 -