Date: Mon, 3 May 1999 09:57:41 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Fabian cc: djgpp AT delorie DOT com Subject: Re: Random numbers In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 2 May 1999, Richard Fabian wrote: > 1. If you generate a set of random numbers using the same seed on > different machines, do you get the same set? No, because the implementation of the random number generators is different on different platforms. > 2. Is there a way to generate random numbers without accessing the > rand() function. You mean, you want to include your own random generator as part of the program, right? You could, of course, write your own version of `rand' (for starters, the sources of the DJGPP implementation are freely available, and many books on computer algorithms will show at least one random generator).