Mercurial > hg > octave-nkf
diff liboctave/oct-rand.h @ 7533:ff52243af934
save state separately for each MT random number generator
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 26 Feb 2008 05:28:59 -0500 |
parents | a1dbe9d80eee |
children | a2950622f070 72830070a17b |
line wrap: on
line diff
--- a/liboctave/oct-rand.h +++ b/liboctave/oct-rand.h @@ -40,16 +40,17 @@ static void seed (double s); // Return the current state. - static ColumnVector state (void); + static ColumnVector state (const std::string& d = std::string ()); // Set the current state/ - static void state (const ColumnVector &s); + static void state (const ColumnVector &s, + const std::string& d = std::string ()); // Return the current distribution. static std::string distribution (void); // Set the current distribution. May be either "uniform" (the - // default) or "normal". + // default), "normal", "exponential", "poisson", or "gamma". static void distribution (const std::string& d); static void uniform_distribution (void);