%PDF- %PDF-
| Direktori : /usr/share/doc/imath-devel/html/classes/ |
| Current File : //usr/share/doc/imath-devel/html/classes/Rand32.html |
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rand32 — Imath Documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bizstyle.css" type="text/css" />
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="../_static/bizstyle.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Rand48" href="Rand48.html" />
<link rel="prev" title="Quat" href="Quat.html" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<!--[if lt IE 9]>
<script src="_static/css3-mediaqueries.js"></script>
<![endif]-->
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="Rand48.html" title="Rand48"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="Quat.html" title="Quat"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li>
<li class="nav-item nav-item-this"><a href="">Rand32</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="rand32">
<h1>Rand32<a class="headerlink" href="#rand32" title="Permalink to this headline">¶</a></h1>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathRandom.h></span>
</pre></div>
</div>
<p>The <code class="docutils literal notranslate"><span class="pre">Rand32</span></code> class is a fast pseudo-random number generator that
generates a uniformly distributed sequence with a period length of
<span class="math notranslate nohighlight">\(2^32\)</span>.</p>
<dl class="cpp class">
<dt id="_CPPv4N5Imath6Rand32E">
<span id="_CPPv3N5Imath6Rand32E"></span><span id="_CPPv2N5Imath6Rand32E"></span><span id="Imath::Rand32"></span><span class="target" id="class_imath_1_1_rand32"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Rand32</code><a class="headerlink" href="#_CPPv4N5Imath6Rand32E" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Fast random-number generator that generates a uniformly distributed sequence with a period length of 2^32. </p>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Public Functions</p>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand326Rand32Em">
<span id="_CPPv3N5Imath6Rand326Rand32Em"></span><span id="_CPPv2N5Imath6Rand326Rand32Em"></span><span id="Imath::Rand32::Rand32__unsigned-l-i"></span><span class="target" id="class_imath_1_1_rand32_1ad62d8a11adf24cc99b40fd859618eeeb"></span><em class="property">inline</em> <code class="sig-name descname">Rand32</code><span class="sig-paren">(</span>unsigned long int <em>seed</em> = 0<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand326Rand32Em" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Constructor, given a seed. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand324initEm">
<span id="_CPPv3N5Imath6Rand324initEm"></span><span id="_CPPv2N5Imath6Rand324initEm"></span><span id="Imath::Rand32::init__unsigned-l-i"></span><span class="target" id="class_imath_1_1_rand32_1a5ade79222544d61c347d6c2c1efbeca3"></span><em class="property">inline</em> void <code class="sig-name descname">init</code><span class="sig-paren">(</span>unsigned long int <em>seed</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand324initEm" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Re-initialize with a given seed. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand325nextbEv">
<span id="_CPPv3N5Imath6Rand325nextbEv"></span><span id="_CPPv2N5Imath6Rand325nextbEv"></span><span id="Imath::Rand32::nextb"></span><span class="target" id="class_imath_1_1_rand32_1a9904d804634ce87f7491974af63f3122"></span><em class="property">inline</em> bool <code class="sig-name descname">nextb</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand325nextbEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range: [false, true]) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand325nextiEv">
<span id="_CPPv3N5Imath6Rand325nextiEv"></span><span id="_CPPv2N5Imath6Rand325nextiEv"></span><span id="Imath::Rand32::nexti"></span><span class="target" id="class_imath_1_1_rand32_1a88b83a97a0b5ee1306ff29c5d3773969"></span><em class="property">inline</em> unsigned long int <code class="sig-name descname">nexti</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand325nextiEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range: [0 … 0xffffffff]) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand325nextfEv">
<span id="_CPPv3N5Imath6Rand325nextfEv"></span><span id="_CPPv2N5Imath6Rand325nextfEv"></span><span id="Imath::Rand32::nextf"></span><span class="target" id="class_imath_1_1_rand32_1ad25030ddee8c9cdf77b257e963707813"></span>float <code class="sig-name descname">nextf</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand325nextfEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range: [0 … 1[) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand325nextfEff">
<span id="_CPPv3N5Imath6Rand325nextfEff"></span><span id="_CPPv2N5Imath6Rand325nextfEff"></span><span id="Imath::Rand32::nextf__float.float"></span><span class="target" id="class_imath_1_1_rand32_1a685cbe1e25dd0016847b2da6ae31d982"></span><em class="property">inline</em> float <code class="sig-name descname">nextf</code><span class="sig-paren">(</span>float <em>rangeMin</em>, float <em>rangeMax</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand325nextfEff" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range [rangeMin … rangeMax[) </p>
</dd></dl>
</div>
</dd></dl>
</div>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/imath-logo-blue.png" alt="Logo"/>
</a></p>
<h4>Previous topic</h4>
<p class="topless"><a href="Quat.html"
title="previous chapter">Quat</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="Rand48.html"
title="next chapter">Rand48</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/classes/Rand32.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="Rand48.html" title="Rand48"
>next</a> |</li>
<li class="right" >
<a href="Quat.html" title="Quat"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li>
<li class="nav-item nav-item-this"><a href="">Rand32</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2021, Contributors to the OpenEXR Project.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3.
</div>
</body>
</html>