realbasic-nug
[Top] [All Lists]

Re: random seed generator?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: random seed generator?
From: Michael <mdeh at comcast dot net>
Date: Wed, 29 Nov 2006 14:28:11 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <21238198-7650-4FF8-A2A5-2CC3FCC0128B at comcast dot net> <49963 dot 217 dot 125 dot 94 dot 125 dot 1164837597 dot squirrel at webmail dot tssystems dot net> <BEB190AD-A3E7-4E09-9E7A-ED7967C919F0 at declareSub dot com>
Hi Charles
I have your book...maybe I should have looked at it more closely!!!
Thanks to all....ticks has done if for me for now.

Michael.
On Nov 29, 2006, at 2:22 PM, Charles Yeomans wrote:

Ot this -- <http://www.declaresub.com/iDeclare/libc/index.html>. The last section explains how to get some random junk from /dev/ random. It works for Mac OS X and Linux.

On Nov 29, 2006, at 4:59 PM, Jose Maria Terry wrote:

If your program has internet access, perhaps must try this to get a seed

http://www.random.org/


On Mie, 29 de Noviembre de 2006, 10:15 pm, Michael wrote:
Sorry if this brings peals of laughter, but I am trying to seed a
random instance using this.

   const maxI = 2147483647
   const minus_maxI=-2147483648

   r.Seed=r.InRange(minus_maxI, maxI)

r.Seed is always the same // -2147484e+9

Any suggestions?  :-)

thanks


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


From  Wed 29 Nov 2006 15:38:04 -0700
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 5E4971274796; Wed, 29 Nov 2006 14:38:33 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on www.realsoftware.com X-Spam-Level: X-Spam-Status: No, score=-1.6 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id B3CB71274790;
        Wed, 29 Nov 2006 14:38:29 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 100F516BE54E; Wed, 29 Nov 2006 16:38:16 -0600 (CST)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 3005B16BE540
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Nov 2006 16:38:07 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 918A86AA788
        for <realbasic-nug at lists dot realsoftware dot com>;
        Wed, 29 Nov 2006 15:38:04 -0700 (MST)
Date: Wed, 29 Nov 2006 15:38:04 -0700
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <21238198-7650-4FF8-A2A5-2CC3FCC0128B at comcast dot net>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20061129223804 dot 918A86AA788 at mail dot verex dot com>
Subject: Re: random seed generator?
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

On Nov 29, 2006, at 21:15 UTC, Michael wrote:

Sorry if this brings peals of laughter, but I am trying to seed a random instance using [itself].

There is no point in using a random sequence to seed itself; this gains
you absolutely nothing.  Let it self-seed, or seed it from some other
source (such as, the number of milliseconds the machine has been
running or the /dev/random file or something like that).

Best,
- Joe


--
Joe Strout -- joe at strout dot net
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>