Mercurial > octave
diff liboctave/oct-rand.h @ 10709:92a85ed5b86e
Don't special case color_property type when emitting factory default (bug #30118)
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 16 Jun 2010 23:27:58 +0200 |
parents | cbc402e64d83 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/liboctave/oct-rand.h Wed Jun 16 14:36:23 2010 +0200 +++ b/liboctave/oct-rand.h Wed Jun 16 23:27:58 2010 +0200 @@ -58,6 +58,13 @@ instance->do_seed (s); } + // Reset the seed. + static void reset (void) + { + if (instance_ok ()) + instance->do_reset (); + } + // Return the current state. static ColumnVector state (const std::string& d = std::string ()) { @@ -72,6 +79,13 @@ instance->do_state (s, d); } + // Reset the current state/ + static void reset (const std::string& d) + { + if (instance_ok ()) + instance->do_reset (d); + } + // Return the current distribution. static std::string distribution (void) { @@ -172,12 +186,18 @@ // Set the seed. void do_seed (double s); + // Reset the seed. + void do_reset (); + // Return the current state. ColumnVector do_state (const std::string& d); // Set the current state/ void do_state (const ColumnVector &s, const std::string& d); + // Reset the current state/ + void do_reset (const std::string& d); + // Return the current distribution. std::string do_distribution (void);