HP3000-L Archives

December 2006, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Art Bahrs <[log in to unmask]>
Reply To:
Date:
Thu, 14 Dec 2006 08:01:14 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (71 lines)
Hello All :)
   Never, Ever reseed with the same value (predictable answer :) )

   Also, Seed with the Clock should be more than adequate unless you got
some really really stringent (sp) requirements....

Art "reliving nightmares of programming classes hehehe " Bahrs
P.S. Wirt posted somethign on this some years ago IIRC that really covered
the subject well... and COBOL can call other language routines :)

=======================================================
Art Bahrs, CISSP           Information Security          The Regence Group
(503) 225-4992               Cell 971-244-2459               FAX (503)
220-3806


                                                                           
                "Walter J.                                                 
                Murray"                                                    
                <wmurray@SUREW                                          To 
                EST.NET>               [log in to unmask]              
                Sent by:                                                cc 
                "HP-3000                                                   
                Systems                                            Subject 
                Discussion"            Re: [HP3000-L] Cobol Function       
                <HP3000-L@RAVE         RANDOM "Problem" Issue              
                N.UTC.EDU>                                                 
                                                                           
                                                                           
                12/12/2006                                                 
                08:56 PM                                                   
                                                                           
                                                                           
                Please respond                                             
                      to                                                   
                  "Walter J.                                               
                   Murray"                                                 
                <wmurray@SUREW                                             
                   EST.NET>                                                
                |------------|                                             
                | [ ] Secure |                                             
                |     E-mail |                                             
                |------------|                                             
                                                                           




Greetings,

I agree with Keven Miller's posting.  It sounds like the original poster
is re-seeding the random number generator on every call.  Just seed it
on the first call, during program initialization.  Then omit the
parameter on subsequent calls.  Also, note that the seed should be an
integer in the range 0 through 999999999.

Walter

Walter J. Murray

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *




***IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed.  If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited.  Nothing in this email, including any attachment, is intended to be a legally binding signature.***

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2