At 18:59 -0700 03/15/2002, Jeff Gomes wrote:

>Sweet!

Grazi.

>It seems to me a while back there was a thread on one of the lists 
>about random number algorithms changing (fortunately rarely) between 
>certain versions of...was it Director or the OS?  I can't remember.

I don't know that this is a great concern, but if it is it's probably 
on the OS level.

I have a *very* strong suspicion that the randomSeed in Lingo is 
simply the Lingo implementation of the C/C++ function srand. I mean 
it would be crazy to write your own random seed algorithm when you've 
already got one.

What I do not know is if the srand function itself is something that 
all OSen produce with consistency (I doubt it), whether it is some 
basic call in the machine (I doubt that too) or whether it's a basic 
library function you get from C (likely). Since it's probably a basic 
library function, the fact that it appears to work more or less the 
same more or less anywhere would imply it's one of those standard 
things that C and C++ programmers expect never to change, like the 
stuff in stdio.h.

That's kind of a long way around saying I'm not really ready to worry 
about it. :D

At 09:08 +0100 03/18/2002, Chris Aernoudt wrote:

>You just saved me a bunch of work
>I'm off to get my lazy chair... :)

Hey, that's what the forum's all about. (OK, not really, but I shure 
do enjoy the cipher stuff.)

Glad it was of use!

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
          http://www.osborne.com/indexes/beginners_guides.shtml
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to