[mlpack-svn] [MLPACK] #193: Random number generator has fixed seed

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Thu Jan 26 18:12:05 EST 2012


#193: Random number generator has fixed seed
----------------------------------------------------+-----------------------
  Reporter:  pram                                   |        Owner:         
      Type:  enhancement                            |       Status:  closed 
  Priority:  major                                  |    Milestone:         
 Component:  mlpack                                 |   Resolution:  invalid
  Keywords:  Random number generator, mlpack::math  |     Blocking:         
Blocked By:                                         |  
----------------------------------------------------+-----------------------

Comment (by pram):

 Replying to [comment:1 rcurtin]:
 > Use `math::RandomSeed(seed)` to set the seed.  The reason srand()
 doesn't work is because the Random() functions use the Boost random number
 library, which is "immune" to srand, instead preferring its own seeding
 mechanism.
 >
 > Documentation
 [http://trac.research.cc.gatech.edu/fastlab/doxygen/namespacemlpack_1_1math.html#c4412776479567b5b330627b783d12f7
 here] (even though it's formatted all weird and colored all wrong... I'm
 working on that...).

 >> Yeah I feel stupid now. Thanks for the pointer!

-- 
Ticket URL: <https://trac.research.cc.gatech.edu/fastlab/ticket/193#comment:2>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list