Path: chuka.playstation.co.uk!news From: Tom Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Randomizer problem Date: Mon, 14 Jun 1999 15:49:13 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 16 Message-ID: <37651669.6B8D@bristol.ac.uk> References: <7jqv39$qtv7@chuka.playstation.co.uk> <7jte32$qtv16@chuka.playstation.co.uk> <3763C3BD.3FD6CB43@mundivia.es> NNTP-Posting-Host: n71.fen.bris.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (WinNT; I) Javier Ventoso wrote: > > I have a trick, while a button(s) is pressed then a increase a counter > and when you need to set the seed use that counter. > > Javi. Another way to do it is to increment a counter for every frame of the game's front end is displayed (assuming you have one) and then calling srand(counter) at the start of the game. Cheers, Tom "I've got a 450MHz PC. Woohoo!"