Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
random seed (Read 1370 times)
wayne
Global Moderator
*****
Offline


I love YaBB 1G - SP1!

Posts: 57
San Diego, CA
Gender: male
random seed
Jan 23rd, 2007 at 4:53am
 
Hi, I presume the RANDOM_SEED is being set to the system clock when SetParameter is not used? Is there a need to use a Randomise command? thanks ./w
Back to top
 

Assistant Project Scientist&&Antiviral Research Center&&Department of Pathology&&University of California, San Diego
WWW WWW  
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: random seed
Reply #1 - Jan 23rd, 2007 at 9:43am
 
Yes, indeed; the default seed is the system clock (seconds since Jan 1st 1970). Because of the properties of good random number generators (e.g. the Mersenne twister used by HyPhy), the closeness of two seeds imparts no undue similarity to the pseudorandom number sequences genereates from the two seeds and the period of the sequence is enormous (>2^10000), hence there should be no need to select the initial seed carefully.

Cheers,
Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged