<?xml version="1.0"?>
<page id="GimpUi.random_seed_new"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_random_seed_new</api:name>
      <api:arg>
        <api:type>Number(guint32)</api:type>
        <api:name>seed</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>random_seed</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.random_seed_new</title>
  <synopsis><code mime="text/x-gjs">
function random_seed_new(seed: Number(guint32), random_seed: Boolean): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_random_seed_new()
}
  </code></synopsis>
  <p>Creates a widget that allows the user to control how the random number
generator is initialized.</p>

<terms>
<item>
<title><code>seed</code></title>
  <p>A pointer to the variable which stores the random seed.</p>
</item>
<item>
<title><code>random_seed</code></title>
  <p>A pointer to a boolean indicating whether seed should be
              initialised randomly or not.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>A <link href="../Gtk-3.0/Gtk.Box.html">Gtk.Box</link> containing a <link href="../Gtk-3.0/Gtk.SpinButton.html">Gtk.SpinButton</link> for
         the seed and a <link href="../Gtk-3.0/Gtk.Button.html">Gtk.Button</link> for setting a random seed.</p>
</item>
</terms>

</page>
