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:03:26 -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>
I am trying to use d.totalseconds as a seed, but not getting anywhere.
totalSecs is a double, so try as I might, I cannot successfully convert the double to an integer without it getting all messed up.
Random.org defeats the purpose of what I am trying to do.

        
On Nov 29, 2006, at 1: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>

_______________________________________________
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>