Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <423DC8D4.3000702@codesourcery.com> Date: Sun, 20 Mar 2005 19:02:44 +0000 From: Nathan Sidwell Organization: Codesourcery LLC User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 MIME-Version: 1.0 To: "Gerrit P. Haase" CC: Alex Vinokur , cygwin AT cygwin DOT com, gcc-help AT gcc DOT gnu DOT org Subject: Re: g++ & rand() in Cygwin References: <423DC28A DOT 8030408 AT familiehaase DOT de> In-Reply-To: <423DC28A.8030408@familiehaase.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 AT codesourcery DOT 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/