This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: g++ & rand() in Cygwin
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: "Gerrit P. Haase" <gp at familiehaase dot de>
- Cc: Alex Vinokur <alexvn at users dot sourceforge dot net>, cygwin at cygwin dot com, gcc-help at gcc dot gnu dot org
- Date: Sun, 20 Mar 2005 19:02:44 +0000
- Subject: Re: g++ & rand() in Cygwin
- Organization: Codesourcery LLC
- References: <d0u0pt$aj0$1@sea.gmane.org> <423DC28A.8030408@familiehaase.de>
Gerrit P. Haase wrote:
Alex Vinokur wrote:
First pseuso-random number is 0.
Random nnumber generators generally need to be seeded with a random
seed. This naively strange behaviour allows you to get consistent
sequences of random numbers, which is generally necessary for regression
testing and debugging.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/