commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bar...@apache.org
Subject [46/51] [partial] commons-rng git commit: Multimodule support
Date Thu, 20 Oct 2016 23:29:53 GMT
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/02/0263fb0d61e2be261b279731f72958825c748d1d.svn-base
----------------------------------------------------------------------
diff --git a/commons-rng-core/site-content/.svn/pristine/02/0263fb0d61e2be261b279731f72958825c748d1d.svn-base b/commons-rng-core/site-content/.svn/pristine/02/0263fb0d61e2be261b279731f72958825c748d1d.svn-base
new file mode 100644
index 0000000..3a4e356
Binary files /dev/null and b/commons-rng-core/site-content/.svn/pristine/02/0263fb0d61e2be261b279731f72958825c748d1d.svn-base differ

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/02/02ea8630aa7255c00f4d3dc61c2971d816754de5.svn-base
----------------------------------------------------------------------
diff --git a/commons-rng-core/site-content/.svn/pristine/02/02ea8630aa7255c00f4d3dc61c2971d816754de5.svn-base b/commons-rng-core/site-content/.svn/pristine/02/02ea8630aa7255c00f4d3dc61c2971d816754de5.svn-base
new file mode 100644
index 0000000..7049f86
--- /dev/null
+++ b/commons-rng-core/site-content/.svn/pristine/02/02ea8630aa7255c00f4d3dc61c2971d816754de5.svn-base
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/*<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * contributor license agreements.  See the NOTICE file distributed with<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * this work for additional information regarding copyright ownership.<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * (the "License"); you may not use this file except in compliance with<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * the License.  You may obtain a copy of the License at<a name="line.7"></a>
+<span class="sourceLineNo">008</span> *<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *      http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *<a name="line.10"></a>
+<span class="sourceLineNo">011</span> * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * See the License for the specific language governing permissions and<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * limitations under the License.<a name="line.15"></a>
+<span class="sourceLineNo">016</span> */<a name="line.16"></a>
+<span class="sourceLineNo">017</span><a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rng.internal.source32;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * Source of randomness that generates values of type {@code int}.<a name="line.21"></a>
+<span class="sourceLineNo">022</span> *<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * @since 1.0<a name="line.23"></a>
+<span class="sourceLineNo">024</span> */<a name="line.24"></a>
+<span class="sourceLineNo">025</span>public interface RandomIntSource {<a name="line.25"></a>
+<span class="sourceLineNo">026</span>    /**<a name="line.26"></a>
+<span class="sourceLineNo">027</span>     * @return the next random value.<a name="line.27"></a>
+<span class="sourceLineNo">028</span>     */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    int next();<a name="line.29"></a>
+<span class="sourceLineNo">030</span>}<a name="line.30"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/03/0330857ac874b961c91fc8c8643501bf893e0207.svn-base
----------------------------------------------------------------------
diff --git a/commons-rng-core/site-content/.svn/pristine/03/0330857ac874b961c91fc8c8643501bf893e0207.svn-base b/commons-rng-core/site-content/.svn/pristine/03/0330857ac874b961c91fc8c8643501bf893e0207.svn-base
new file mode 100644
index 0000000..9253cc4
--- /dev/null
+++ b/commons-rng-core/site-content/.svn/pristine/03/0330857ac874b961c91fc8c8643501bf893e0207.svn-base
@@ -0,0 +1,321 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>TwoCmres xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/internal/source64/TwoCmres.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rng.internal.source64;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rng.internal.util.NumberFactory;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment"> * Random number generator designed by Mark D.&amp;nbsp;Overton.</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> *  It is one of the many generators described by the author in the following article series:</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> *  &lt;ul&gt;</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> *   &lt;li&gt;&lt;a href="<a href="http://www.drdobbs.com/tools/fast-high-quality-parallel-random-number/229625477" target="alexandria_uri">http://www.drdobbs.com/tools/fast-high-quality-parallel-random-number/229625477</a>"&gt;Part one&lt;/a&gt;&lt;/li&gt;</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> *   &lt;li&gt;&lt;a href="<a href="http://www.drdobbs.com/tools/fast-high-quality-parallel-random-number/231000484" target="alexandria_uri">http://www.drdobbs.com/tools/fast-high-quality-parallel-random-number/231000484</a>"&gt;Part two&lt;/a&gt;&lt;/li&gt;</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment"> *  &lt;/ul&gt;</em>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment"> * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment"> * @since 1.0</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">TwoCmres</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html">LongProvider</a> {
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      <em class="jxr_javadoccomment">/** Error message. */</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String INTERNAL_ERROR_MSG = <span class="jxr_string">"Internal error: Please file a bug report"</span>;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <em class="jxr_javadoccomment">/** A small positive integer. */</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> byte SEED_GUARD = 9;
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <em class="jxr_javadoccomment">/** Factory of instances of this class. Singleton. */</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Cmres.Factory FACTORY = <strong class="jxr_keyword">new</strong> Cmres.Factory();
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      <em class="jxr_javadoccomment">/** First subcycle generator. */</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a> x;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <em class="jxr_javadoccomment">/** Second subcycle generator. */</em>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a> y;
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <em class="jxr_javadoccomment">/** State of first subcycle generator. */</em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> xx;
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <em class="jxr_javadoccomment">/** State of second subcycle generator. */</em>
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> yy;
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>  <em class="jxr_javadoccomment">     * Creates a new instance.</em>
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>  <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  <em class="jxr_javadoccomment">     * @param seed Initial seed.</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>  <em class="jxr_javadoccomment">     * @param x First subcycle generator.</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  <em class="jxr_javadoccomment">     * @param y Second subcycle generator.</em>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code x == y}.</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>      <strong class="jxr_keyword">private</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">TwoCmres</a>(<strong class="jxr_keyword">int</strong> seed,
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                       <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a> x,
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                       <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a> y) {
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          <strong class="jxr_keyword">if</strong> (x == y) {
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Subcycle generators must be different"</span>);
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          }
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          <strong class="jxr_keyword">this</strong>.x = x;
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">this</strong>.y = y;
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          setSeedInternal(seed);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>      }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>  
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>  <em class="jxr_javadoccomment">     * Creates a new instance.</em>
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>  <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>  <em class="jxr_javadoccomment">     * @param seed Seed.</em>
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">TwoCmres</a>(Integer seed) {
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>          <strong class="jxr_keyword">this</strong>(seed, 0, 1);
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>      }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>  
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  <em class="jxr_javadoccomment">     * Creates a new instance.</em>
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>  <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>  <em class="jxr_javadoccomment">     * @param seed Seed.</em>
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>  <em class="jxr_javadoccomment">     * @param i Table entry for first subcycle generator.</em>
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>  <em class="jxr_javadoccomment">     * @param j Table entry for second subcycle generator.</em>
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>  <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code i == j}.</em>
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>  <em class="jxr_javadoccomment">     * @throws IndexOutOfBoundsException if {@code i &lt; 0} or</em>
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>  <em class="jxr_javadoccomment">     * {@code i &gt;= numberOfSubcycleGenerators()}.</em>
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>  <em class="jxr_javadoccomment">     * @throws IndexOutOfBoundsException if {@code j &lt; 0} or</em>
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>  <em class="jxr_javadoccomment">     * {@code j &gt;= numberOfSubcycleGenerators()}.</em>
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">TwoCmres</a>(Integer seed,
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>                      <strong class="jxr_keyword">int</strong> i,
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>                      <strong class="jxr_keyword">int</strong> j) {
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>          <strong class="jxr_keyword">this</strong>(seed, FACTORY.get(i), FACTORY.get(j));
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>      }
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>  
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>      @Override
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> next() {
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         xx = x.transform(xx);
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         yy = y.transform(yy);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a> 
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         <strong class="jxr_keyword">return</strong> xx + yy;
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>     }
+<a class="jxr_linenumber" name="L106" href="#L106">106</a> 
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>     @Override
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>     <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">super</strong>.toString() + <span class="jxr_string">" ("</span> + x + <span class="jxr_string">" + "</span> + y + <span class="jxr_string">")"</span>;
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>     }
+<a class="jxr_linenumber" name="L112" href="#L112">112</a> 
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L114" href="#L114">114</a> <em class="jxr_javadoccomment">     * @return the number of subcycle generators.</em>
+<a class="jxr_linenumber" name="L115" href="#L115">115</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> numberOfSubcycleGenerators() {
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         <strong class="jxr_keyword">return</strong> FACTORY.numberOfSubcycleGenerators();
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>     }
+<a class="jxr_linenumber" name="L119" href="#L119">119</a> 
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>     @Override
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>     <strong class="jxr_keyword">protected</strong> byte[] getStateInternal() {
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>         <strong class="jxr_keyword">return</strong> NumberFactory.makeByteArray(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[] { xx, yy });
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>     }
+<a class="jxr_linenumber" name="L125" href="#L125">125</a> 
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>     @Override
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setStateInternal(byte[] s) {
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         checkStateSize(s, 16);
+<a class="jxr_linenumber" name="L130" href="#L130">130</a> 
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong>[] state = NumberFactory.makeLongArray(s);
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>         xx = state[0];
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>         yy = state[1];
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>     }
+<a class="jxr_linenumber" name="L135" href="#L135">135</a> 
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L137" href="#L137">137</a> <em class="jxr_javadoccomment">     * @param seed Seed.</em>
+<a class="jxr_linenumber" name="L138" href="#L138">138</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> setSeedInternal(<strong class="jxr_keyword">int</strong> seed) {
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>         <em class="jxr_comment">// The seeding procedure consists in going away from some</em>
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>         <em class="jxr_comment">// point known to be in the cycle.</em>
+<a class="jxr_linenumber" name="L142" href="#L142">142</a>         <em class="jxr_comment">// The total number of calls to the "transform" method will</em>
+<a class="jxr_linenumber" name="L143" href="#L143">143</a>         <em class="jxr_comment">// not exceed about 130,000 (which is negligible as seeding</em>
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         <em class="jxr_comment">// will not occur more than once in normal usage).</em>
+<a class="jxr_linenumber" name="L145" href="#L145">145</a> 
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>         <em class="jxr_comment">// Make two positive 16-bits integers.</em>
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> s = NumberFactory.makeLong(0, seed); <em class="jxr_comment">// s &gt;= 0</em>
+<a class="jxr_linenumber" name="L148" href="#L148">148</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> xMax = (<strong class="jxr_keyword">int</strong>) (s &amp; 0xffff + SEED_GUARD);
+<a class="jxr_linenumber" name="L149" href="#L149">149</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> yMax = (<strong class="jxr_keyword">int</strong>) ((s &gt;&gt; 16) + SEED_GUARD);
+<a class="jxr_linenumber" name="L150" href="#L150">150</a> 
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         <strong class="jxr_keyword">if</strong> (xMax &lt; 0 ||
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>             yMax &lt; 0) {
+<a class="jxr_linenumber" name="L153" href="#L153">153</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalStateException(INTERNAL_ERROR_MSG);
+<a class="jxr_linenumber" name="L154" href="#L154">154</a>         }
+<a class="jxr_linenumber" name="L155" href="#L155">155</a> 
+<a class="jxr_linenumber" name="L156" href="#L156">156</a>         xx = x.getStart();
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = xMax; i &gt; 0; i--) {
+<a class="jxr_linenumber" name="L158" href="#L158">158</a>             xx = x.transform(xx);
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>         }
+<a class="jxr_linenumber" name="L160" href="#L160">160</a> 
+<a class="jxr_linenumber" name="L161" href="#L161">161</a>         yy = y.getStart();
+<a class="jxr_linenumber" name="L162" href="#L162">162</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = yMax; i &gt; 0; i--) {
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>             yy = y.transform(yy);
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>         }
+<a class="jxr_linenumber" name="L165" href="#L165">165</a>     }
+<a class="jxr_linenumber" name="L166" href="#L166">166</a> 
+<a class="jxr_linenumber" name="L167" href="#L167">167</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L168" href="#L168">168</a> <em class="jxr_javadoccomment">     * Subcycle generator.</em>
+<a class="jxr_linenumber" name="L169" href="#L169">169</a> <em class="jxr_javadoccomment">     * Class is immutable.</em>
+<a class="jxr_linenumber" name="L170" href="#L170">170</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L171" href="#L171">171</a>     <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a> {
+<a class="jxr_linenumber" name="L172" href="#L172">172</a>         <em class="jxr_javadoccomment">/** Cycle start. */</em>
+<a class="jxr_linenumber" name="L173" href="#L173">173</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> start;
+<a class="jxr_linenumber" name="L174" href="#L174">174</a>         <em class="jxr_javadoccomment">/** Multiplier. */</em>
+<a class="jxr_linenumber" name="L175" href="#L175">175</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> multiply;
+<a class="jxr_linenumber" name="L176" href="#L176">176</a>         <em class="jxr_javadoccomment">/** Rotation. */</em>
+<a class="jxr_linenumber" name="L177" href="#L177">177</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> rotate;
+<a class="jxr_linenumber" name="L178" href="#L178">178</a> 
+<a class="jxr_linenumber" name="L179" href="#L179">179</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L180" href="#L180">180</a> <em class="jxr_javadoccomment">         * @param multiply Multiplier.</em>
+<a class="jxr_linenumber" name="L181" href="#L181">181</a> <em class="jxr_javadoccomment">         * @param rotate Positive number. Must be in {@code [0, 64]}.</em>
+<a class="jxr_linenumber" name="L182" href="#L182">182</a> <em class="jxr_javadoccomment">         * @param start Cycle start.</em>
+<a class="jxr_linenumber" name="L183" href="#L183">183</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="L184" href="#L184">184</a>         <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a>(<strong class="jxr_keyword">long</strong> multiply,
+<a class="jxr_linenumber" name="L185" href="#L185">185</a>               <strong class="jxr_keyword">int</strong> rotate,
+<a class="jxr_linenumber" name="L186" href="#L186">186</a>               <strong class="jxr_keyword">int</strong> start) {
+<a class="jxr_linenumber" name="L187" href="#L187">187</a>             <strong class="jxr_keyword">this</strong>.multiply = multiply;
+<a class="jxr_linenumber" name="L188" href="#L188">188</a>             <strong class="jxr_keyword">this</strong>.rotate = rotate;
+<a class="jxr_linenumber" name="L189" href="#L189">189</a>             <strong class="jxr_keyword">this</strong>.start = start;
+<a class="jxr_linenumber" name="L190" href="#L190">190</a>         }
+<a class="jxr_linenumber" name="L191" href="#L191">191</a> 
+<a class="jxr_linenumber" name="L192" href="#L192">192</a>         <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L193" href="#L193">193</a>         @Override
+<a class="jxr_linenumber" name="L194" href="#L194">194</a>         <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L195" href="#L195">195</a>             <strong class="jxr_keyword">final</strong> String sep = <span class="jxr_string">", "</span>;
+<a class="jxr_linenumber" name="L196" href="#L196">196</a>             <em class="jxr_comment">// Use hexadecimal for "multiplier" field.</em>
+<a class="jxr_linenumber" name="L197" href="#L197">197</a>             <strong class="jxr_keyword">final</strong> String m = String.format((java.util.Locale) <strong class="jxr_keyword">null</strong>, <span class="jxr_string">"0x%016xL"</span>, multiply);
+<a class="jxr_linenumber" name="L198" href="#L198">198</a>             <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Cmres: ["</span> + m + sep + rotate + sep + start + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="L199" href="#L199">199</a>         }
+<a class="jxr_linenumber" name="L200" href="#L200">200</a> 
+<a class="jxr_linenumber" name="L201" href="#L201">201</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L202" href="#L202">202</a> <em class="jxr_javadoccomment">         * @return the multiplier.</em>
+<a class="jxr_linenumber" name="L203" href="#L203">203</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="L204" href="#L204">204</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getMultiply() {
+<a class="jxr_linenumber" name="L205" href="#L205">205</a>             <strong class="jxr_keyword">return</strong> multiply;
+<a class="jxr_linenumber" name="L206" href="#L206">206</a>         }
+<a class="jxr_linenumber" name="L207" href="#L207">207</a> 
+<a class="jxr_linenumber" name="L208" href="#L208">208</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L209" href="#L209">209</a> <em class="jxr_javadoccomment">         * @return the cycle start.</em>
+<a class="jxr_linenumber" name="L210" href="#L210">210</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="L211" href="#L211">211</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getStart() {
+<a class="jxr_linenumber" name="L212" href="#L212">212</a>             <strong class="jxr_keyword">return</strong> start;
+<a class="jxr_linenumber" name="L213" href="#L213">213</a>         }
+<a class="jxr_linenumber" name="L214" href="#L214">214</a> 
+<a class="jxr_linenumber" name="L215" href="#L215">215</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L216" href="#L216">216</a> <em class="jxr_javadoccomment">         * @param state Current state.</em>
+<a class="jxr_linenumber" name="L217" href="#L217">217</a> <em class="jxr_javadoccomment">         * @return the new state.</em>
+<a class="jxr_linenumber" name="L218" href="#L218">218</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="L219" href="#L219">219</a>         <strong class="jxr_keyword">long</strong> transform(<strong class="jxr_keyword">long</strong> state) {
+<a class="jxr_linenumber" name="L220" href="#L220">220</a>             <strong class="jxr_keyword">long</strong> s = state;
+<a class="jxr_linenumber" name="L221" href="#L221">221</a>             s *= multiply;
+<a class="jxr_linenumber" name="L222" href="#L222">222</a>             s = rotl(s);
+<a class="jxr_linenumber" name="L223" href="#L223">223</a>             s -= state;
+<a class="jxr_linenumber" name="L224" href="#L224">224</a>             <strong class="jxr_keyword">return</strong> s;
+<a class="jxr_linenumber" name="L225" href="#L225">225</a>         }
+<a class="jxr_linenumber" name="L226" href="#L226">226</a> 
+<a class="jxr_linenumber" name="L227" href="#L227">227</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L228" href="#L228">228</a> <em class="jxr_javadoccomment">         * @param state State.</em>
+<a class="jxr_linenumber" name="L229" href="#L229">229</a> <em class="jxr_javadoccomment">         * @return the rotated state.</em>
+<a class="jxr_linenumber" name="L230" href="#L230">230</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="L231" href="#L231">231</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> rotl(<strong class="jxr_keyword">long</strong> state) {
+<a class="jxr_linenumber" name="L232" href="#L232">232</a>             <strong class="jxr_keyword">return</strong> (state &lt;&lt; rotate) | (state &gt;&gt;&gt; (64 - rotate));
+<a class="jxr_linenumber" name="L233" href="#L233">233</a>         }
+<a class="jxr_linenumber" name="L234" href="#L234">234</a> 
+<a class="jxr_linenumber" name="L235" href="#L235">235</a>         <em class="jxr_javadoccomment">/** Factory. */</em>
+<a class="jxr_linenumber" name="L236" href="#L236">236</a>         <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Factory</a> {
+<a class="jxr_linenumber" name="L237" href="#L237">237</a>             <em class="jxr_javadoccomment">/** List of good "Cmres" subcycle generators. */</em>
+<a class="jxr_linenumber" name="L238" href="#L238">238</a>             <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> List&lt;Cmres&gt; TABLE = <strong class="jxr_keyword">new</strong> ArrayList&lt;Cmres&gt;();
+<a class="jxr_linenumber" name="L239" href="#L239">239</a> 
+<a class="jxr_linenumber" name="L240" href="#L240">240</a>             <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L241" href="#L241">241</a> <em class="jxr_javadoccomment">             * Populates the table.</em>
+<a class="jxr_linenumber" name="L242" href="#L242">242</a> <em class="jxr_javadoccomment">             * It lists parameters known to be good (provided in</em>
+<a class="jxr_linenumber" name="L243" href="#L243">243</a> <em class="jxr_javadoccomment">             * the article referred to above).</em>
+<a class="jxr_linenumber" name="L244" href="#L244">244</a> <em class="jxr_javadoccomment">             * To maintain compatibility, new entries must be added</em>
+<a class="jxr_linenumber" name="L245" href="#L245">245</a> <em class="jxr_javadoccomment">             * only at the end of the table.</em>
+<a class="jxr_linenumber" name="L246" href="#L246">246</a> <em class="jxr_javadoccomment">             */</em>
+<a class="jxr_linenumber" name="L247" href="#L247">247</a>             <strong class="jxr_keyword">static</strong> {
+<a class="jxr_linenumber" name="L248" href="#L248">248</a>                 add(0xedce446814d3b3d9L, 33, 0x13b572e7);
+<a class="jxr_linenumber" name="L249" href="#L249">249</a>                 add(0xc5b3cf786c806df7L, 33, 0x13c8e18a);
+<a class="jxr_linenumber" name="L250" href="#L250">250</a>                 add(0xdd91bbb8ab9e0e65L, 31, 0x06dd03a6);
+<a class="jxr_linenumber" name="L251" href="#L251">251</a>                 add(0x7b69342c0790221dL, 31, 0x1646bb8b);
+<a class="jxr_linenumber" name="L252" href="#L252">252</a>                 add(0x0c72c0d18614c32bL, 33, 0x06014a3d);
+<a class="jxr_linenumber" name="L253" href="#L253">253</a>                 add(0xd8d98c13bebe26c9L, 33, 0x014e8475);
+<a class="jxr_linenumber" name="L254" href="#L254">254</a>                 add(0xcb039dc328bbc40fL, 31, 0x008684bd);
+<a class="jxr_linenumber" name="L255" href="#L255">255</a>                 add(0x858c5ef3c021ed2fL, 32, 0x0dc8d622);
+<a class="jxr_linenumber" name="L256" href="#L256">256</a>                 add(0x4c8be96bfc23b127L, 33, 0x0b6b20cc);
+<a class="jxr_linenumber" name="L257" href="#L257">257</a>                 add(0x11eab77f808cf641L, 32, 0x06534421);
+<a class="jxr_linenumber" name="L258" href="#L258">258</a>                 add(0xbc9bd78810fd28fdL, 31, 0x1d9ba40d);
+<a class="jxr_linenumber" name="L259" href="#L259">259</a>                 add(0x0f1505c780688cb5L, 33, 0x0b7b7b67);
+<a class="jxr_linenumber" name="L260" href="#L260">260</a>                 add(0xadc174babc2053afL, 31, 0x267f4197);
+<a class="jxr_linenumber" name="L261" href="#L261">261</a>                 add(0x900b6b82b31686d9L, 31, 0x023c6985);
+<a class="jxr_linenumber" name="L262" href="#L262">262</a>                 <em class="jxr_comment">// Add new entries here.</em>
+<a class="jxr_linenumber" name="L263" href="#L263">263</a>             }
+<a class="jxr_linenumber" name="L264" href="#L264">264</a> 
+<a class="jxr_linenumber" name="L265" href="#L265">265</a>             <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L266" href="#L266">266</a> <em class="jxr_javadoccomment">             * @return the number of subcycle generators.</em>
+<a class="jxr_linenumber" name="L267" href="#L267">267</a> <em class="jxr_javadoccomment">             */</em>
+<a class="jxr_linenumber" name="L268" href="#L268">268</a>             <strong class="jxr_keyword">int</strong> numberOfSubcycleGenerators() {
+<a class="jxr_linenumber" name="L269" href="#L269">269</a>                 <strong class="jxr_keyword">return</strong> TABLE.size();
+<a class="jxr_linenumber" name="L270" href="#L270">270</a>             }
+<a class="jxr_linenumber" name="L271" href="#L271">271</a> 
+<a class="jxr_linenumber" name="L272" href="#L272">272</a>             <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L273" href="#L273">273</a> <em class="jxr_javadoccomment">             * @param index Index into the list of available generators.</em>
+<a class="jxr_linenumber" name="L274" href="#L274">274</a> <em class="jxr_javadoccomment">             * @return the subcycle generator entry at index {@code index}.</em>
+<a class="jxr_linenumber" name="L275" href="#L275">275</a> <em class="jxr_javadoccomment">             */</em>
+<a class="jxr_linenumber" name="L276" href="#L276">276</a>             <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a> get(<strong class="jxr_keyword">int</strong> index) {
+<a class="jxr_linenumber" name="L277" href="#L277">277</a>                 <strong class="jxr_keyword">if</strong> (index &lt; 0 ||
+<a class="jxr_linenumber" name="L278" href="#L278">278</a>                     index &gt;= TABLE.size()) {
+<a class="jxr_linenumber" name="L279" href="#L279">279</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IndexOutOfBoundsException(<span class="jxr_string">"Out of interval [0, "</span> +
+<a class="jxr_linenumber" name="L280" href="#L280">280</a>                                                         (TABLE.size() - 1) + <span class="jxr_string">"]"</span>);
+<a class="jxr_linenumber" name="L281" href="#L281">281</a>                 }
+<a class="jxr_linenumber" name="L282" href="#L282">282</a> 
+<a class="jxr_linenumber" name="L283" href="#L283">283</a>                 <strong class="jxr_keyword">return</strong> TABLE.get(index);
+<a class="jxr_linenumber" name="L284" href="#L284">284</a>             }
+<a class="jxr_linenumber" name="L285" href="#L285">285</a> 
+<a class="jxr_linenumber" name="L286" href="#L286">286</a>             <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L287" href="#L287">287</a> <em class="jxr_javadoccomment">             * Adds an entry to the {@link Factory#TABLE}.</em>
+<a class="jxr_linenumber" name="L288" href="#L288">288</a> <em class="jxr_javadoccomment">             *</em>
+<a class="jxr_linenumber" name="L289" href="#L289">289</a> <em class="jxr_javadoccomment">             * @param multiply Multiplier.</em>
+<a class="jxr_linenumber" name="L290" href="#L290">290</a> <em class="jxr_javadoccomment">             * @param rotate Rotate.</em>
+<a class="jxr_linenumber" name="L291" href="#L291">291</a> <em class="jxr_javadoccomment">             * @param start Cycle start.</em>
+<a class="jxr_linenumber" name="L292" href="#L292">292</a> <em class="jxr_javadoccomment">             */</em>
+<a class="jxr_linenumber" name="L293" href="#L293">293</a>             <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> add(<strong class="jxr_keyword">long</strong> multiply,
+<a class="jxr_linenumber" name="L294" href="#L294">294</a>                                     <strong class="jxr_keyword">int</strong> rotate,
+<a class="jxr_linenumber" name="L295" href="#L295">295</a>                                     <strong class="jxr_keyword">int</strong> start) {
+<a class="jxr_linenumber" name="L296" href="#L296">296</a>                 <em class="jxr_comment">// Sanity check: if there are duplicates, the class initialization</em>
+<a class="jxr_linenumber" name="L297" href="#L297">297</a>                 <em class="jxr_comment">// will fail (and the JVM will report "NoClassDefFoundError").</em>
+<a class="jxr_linenumber" name="L298" href="#L298">298</a>                 <strong class="jxr_keyword">for</strong> (Cmres sg : TABLE) {
+<a class="jxr_linenumber" name="L299" href="#L299">299</a>                     <strong class="jxr_keyword">if</strong> (multiply == sg.getMultiply()) {
+<a class="jxr_linenumber" name="L300" href="#L300">300</a>                         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalStateException(INTERNAL_ERROR_MSG);
+<a class="jxr_linenumber" name="L301" href="#L301">301</a>                     }
+<a class="jxr_linenumber" name="L302" href="#L302">302</a>                 }
+<a class="jxr_linenumber" name="L303" href="#L303">303</a> 
+<a class="jxr_linenumber" name="L304" href="#L304">304</a>                 TABLE.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/TwoCmres.html">Cmres</a>(multiply, rotate, start));
+<a class="jxr_linenumber" name="L305" href="#L305">305</a>             }
+<a class="jxr_linenumber" name="L306" href="#L306">306</a>         }
+<a class="jxr_linenumber" name="L307" href="#L307">307</a>     }
+<a class="jxr_linenumber" name="L308" href="#L308">308</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/03/03ddd996151792053626e1e096543692cfb72438.svn-base
----------------------------------------------------------------------
diff --git a/commons-rng-core/site-content/.svn/pristine/03/03ddd996151792053626e1e096543692cfb72438.svn-base b/commons-rng-core/site-content/.svn/pristine/03/03ddd996151792053626e1e096543692cfb72438.svn-base
new file mode 100644
index 0000000..2b1f315
--- /dev/null
+++ b/commons-rng-core/site-content/.svn/pristine/03/03ddd996151792053626e1e096543692cfb72438.svn-base
@@ -0,0 +1,279 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>ISAACRandom xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/internal/source32/ISAACRandom.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rng.internal.source32;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.util.Arrays;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rng.internal.util.NumberFactory;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> * A fast cryptographic pseudo-random number generator.</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * ISAAC (Indirection, Shift, Accumulate, Add, and Count) generates 32-bit</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> * random numbers.</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * ISAAC has been designed to be cryptographically secure and is inspired</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> * by RC4.</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> * Cycles are guaranteed to be at least 2&lt;sup&gt;40&lt;/sup&gt; values long, and they</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment"> * are 2&lt;sup&gt;8295&lt;/sup&gt; values long on average.</em>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment"> * The results are uniformly distributed, unbiased, and unpredictable unless</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment"> * you know the seed.</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment"> * This code is based (with minor changes and improvements) on the original</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment"> * implementation of the algorithm by Bob Jenkins.</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment"> * @see &lt;a href="<a href="http://burtleburtle.net/bob/rand/isaacafa.html" target="alexandria_uri">http://burtleburtle.net/bob/rand/isaacafa.html</a>"&gt;</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment"> * ISAAC: a fast cryptographic pseudo-random number generator&lt;/a&gt;</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment"> * @since 1.0</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/internal/source32/ISAACRandom.html">ISAACRandom</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/internal/source32/IntProvider.html">IntProvider</a> {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      <em class="jxr_javadoccomment">/** Log of size of rsl[] and mem[]. */</em>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> SIZE_L = 8;
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      <em class="jxr_javadoccomment">/** Size of rsl[] and mem[]. */</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> SIZE = 1 &lt;&lt; SIZE_L;
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <em class="jxr_javadoccomment">/** Half-size of rsl[] and mem[]. */</em>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> H_SIZE = SIZE &gt;&gt; 1;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <em class="jxr_javadoccomment">/** For pseudo-random lookup. */</em>
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> MASK = SIZE - 1 &lt;&lt; 2;
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      <em class="jxr_javadoccomment">/** The golden ratio. */</em>
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> GLD_RATIO = 0x9e3779b9;
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <em class="jxr_javadoccomment">/** The results given to the user. */</em>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] rsl = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">int</strong>[SIZE];
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      <em class="jxr_javadoccomment">/** The internal state. */</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] mem = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">int</strong>[SIZE];
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      <em class="jxr_javadoccomment">/** Count through the results in rsl[]. */</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> count;
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>      <em class="jxr_javadoccomment">/** Accumulator. */</em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> isaacA;
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>      <em class="jxr_javadoccomment">/** The last result. */</em>
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> isaacB;
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      <em class="jxr_javadoccomment">/** Counter, guarantees cycle is at least 2^40. */</em>
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> isaacC;
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>      <em class="jxr_javadoccomment">/** Service variable. */</em>
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] arr = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">int</strong>[8];
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>      <em class="jxr_javadoccomment">/** Service variable. */</em>
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> isaacX;
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>      <em class="jxr_javadoccomment">/** Service variable. */</em>
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> isaacI;
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>      <em class="jxr_javadoccomment">/** Service variable. */</em>
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> isaacJ;
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>  
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>  <em class="jxr_javadoccomment">     * Creates a new ISAAC random number generator.</em>
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>  <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>  <em class="jxr_javadoccomment">     * @param seed Initial seed</em>
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/internal/source32/ISAACRandom.html">ISAACRandom</a>(<strong class="jxr_keyword">int</strong>[] seed) {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          setSeedInternal(seed);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>  
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>      @Override
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>      <strong class="jxr_keyword">protected</strong> byte[] getStateInternal() {
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] sRsl = Arrays.copyOf(rsl, SIZE);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] sMem = Arrays.copyOf(mem, SIZE);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] sRem = Arrays.copyOf(<strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">int</strong>[] { count, isaacA, isaacB, isaacC }, 4);
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>  
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] s = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">int</strong>[2 * SIZE + sRem.length];
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          System.arraycopy(sRsl, 0, s, 0, SIZE);
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          System.arraycopy(sMem, 0, s, SIZE, SIZE);
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          System.arraycopy(sRem, 0, s, 2 * SIZE, sRem.length);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>  
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>          <strong class="jxr_keyword">return</strong> NumberFactory.makeByteArray(s);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>      }
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>  
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>     @Override
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setStateInternal(byte[] s) {
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         checkStateSize(s, (2 * SIZE + 4) * 4);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a> 
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] tmp = NumberFactory.makeIntArray(s);
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>         System.arraycopy(tmp, 0, rsl, 0, SIZE);
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         System.arraycopy(tmp, SIZE, mem, 0, SIZE);
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> offset = 2 * SIZE;
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         count = tmp[offset];
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         isaacA = tmp[offset + 1];
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         isaacB = tmp[offset + 2];
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         isaacC = tmp[offset + 3];
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>     }
+<a class="jxr_linenumber" name="L113" href="#L113">113</a> 
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L115" href="#L115">115</a> <em class="jxr_javadoccomment">     * Reseeds the RNG.</em>
+<a class="jxr_linenumber" name="L116" href="#L116">116</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L117" href="#L117">117</a> <em class="jxr_javadoccomment">     * @param seed Seed. Cannot be null.</em>
+<a class="jxr_linenumber" name="L118" href="#L118">118</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> setSeedInternal(<strong class="jxr_keyword">int</strong>[] seed) {
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> seedLen = seed.length;
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> rslLen = rsl.length;
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         System.arraycopy(seed, 0, rsl, 0, Math.min(seedLen, rslLen));
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>         <strong class="jxr_keyword">if</strong> (seedLen &lt; rslLen) {
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>             <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = seedLen; j &lt; rslLen; j++) {
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>                 <strong class="jxr_keyword">long</strong> k = rsl[j - seedLen];
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>                 rsl[j] = (<strong class="jxr_keyword">int</strong>) (0x6c078965L * (k ^ k &gt;&gt; 30) + j &amp; 0xffffffffL);
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>             }
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         }
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         initState();
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>     }
+<a class="jxr_linenumber" name="L131" href="#L131">131</a> 
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>     <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>     @Override
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> next() {
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         <strong class="jxr_keyword">if</strong> (count &lt; 0) {
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>             isaac();
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>             count = SIZE - 1;
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>         }
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>         <strong class="jxr_keyword">return</strong> rsl[count--];
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>     }
+<a class="jxr_linenumber" name="L141" href="#L141">141</a> 
+<a class="jxr_linenumber" name="L142" href="#L142">142</a>     <em class="jxr_javadoccomment">/** Generate 256 results */</em>
+<a class="jxr_linenumber" name="L143" href="#L143">143</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> isaac() {
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         isaacI = 0;
+<a class="jxr_linenumber" name="L145" href="#L145">145</a>         isaacJ = H_SIZE;
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>         isaacB += ++isaacC;
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>         <strong class="jxr_keyword">while</strong> (isaacI &lt; H_SIZE) {
+<a class="jxr_linenumber" name="L148" href="#L148">148</a>             isaac2();
+<a class="jxr_linenumber" name="L149" href="#L149">149</a>         }
+<a class="jxr_linenumber" name="L150" href="#L150">150</a>         isaacJ = 0;
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         <strong class="jxr_keyword">while</strong> (isaacJ &lt; H_SIZE) {
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>             isaac2();
+<a class="jxr_linenumber" name="L153" href="#L153">153</a>         }
+<a class="jxr_linenumber" name="L154" href="#L154">154</a>     }
+<a class="jxr_linenumber" name="L155" href="#L155">155</a> 
+<a class="jxr_linenumber" name="L156" href="#L156">156</a>     <em class="jxr_javadoccomment">/** Intermediate internal loop. */</em>
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> isaac2() {
+<a class="jxr_linenumber" name="L158" href="#L158">158</a>         isaacX = mem[isaacI];
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>         isaacA ^= isaacA &lt;&lt; 13;
+<a class="jxr_linenumber" name="L160" href="#L160">160</a>         isaacA += mem[isaacJ++];
+<a class="jxr_linenumber" name="L161" href="#L161">161</a>         isaac3();
+<a class="jxr_linenumber" name="L162" href="#L162">162</a>         isaacX = mem[isaacI];
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>         isaacA ^= isaacA &gt;&gt;&gt; 6;
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>         isaacA += mem[isaacJ++];
+<a class="jxr_linenumber" name="L165" href="#L165">165</a>         isaac3();
+<a class="jxr_linenumber" name="L166" href="#L166">166</a>         isaacX = mem[isaacI];
+<a class="jxr_linenumber" name="L167" href="#L167">167</a>         isaacA ^= isaacA &lt;&lt; 2;
+<a class="jxr_linenumber" name="L168" href="#L168">168</a>         isaacA += mem[isaacJ++];
+<a class="jxr_linenumber" name="L169" href="#L169">169</a>         isaac3();
+<a class="jxr_linenumber" name="L170" href="#L170">170</a>         isaacX = mem[isaacI];
+<a class="jxr_linenumber" name="L171" href="#L171">171</a>         isaacA ^= isaacA &gt;&gt;&gt; 16;
+<a class="jxr_linenumber" name="L172" href="#L172">172</a>         isaacA += mem[isaacJ++];
+<a class="jxr_linenumber" name="L173" href="#L173">173</a>         isaac3();
+<a class="jxr_linenumber" name="L174" href="#L174">174</a>     }
+<a class="jxr_linenumber" name="L175" href="#L175">175</a> 
+<a class="jxr_linenumber" name="L176" href="#L176">176</a>     <em class="jxr_javadoccomment">/** Lowest level internal loop. */</em>
+<a class="jxr_linenumber" name="L177" href="#L177">177</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> isaac3() {
+<a class="jxr_linenumber" name="L178" href="#L178">178</a>         mem[isaacI] = mem[(isaacX &amp; MASK) &gt;&gt; 2] + isaacA + isaacB;
+<a class="jxr_linenumber" name="L179" href="#L179">179</a>         isaacB = mem[(mem[isaacI] &gt;&gt; SIZE_L &amp; MASK) &gt;&gt; 2] + isaacX;
+<a class="jxr_linenumber" name="L180" href="#L180">180</a>         rsl[isaacI++] = isaacB;
+<a class="jxr_linenumber" name="L181" href="#L181">181</a>     }
+<a class="jxr_linenumber" name="L182" href="#L182">182</a> 
+<a class="jxr_linenumber" name="L183" href="#L183">183</a>     <em class="jxr_javadoccomment">/** Initialize, or reinitialize, this instance of rand. */</em>
+<a class="jxr_linenumber" name="L184" href="#L184">184</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> initState() {
+<a class="jxr_linenumber" name="L185" href="#L185">185</a>         isaacA = 0;
+<a class="jxr_linenumber" name="L186" href="#L186">186</a>         isaacB = 0;
+<a class="jxr_linenumber" name="L187" href="#L187">187</a>         isaacC = 0;
+<a class="jxr_linenumber" name="L188" href="#L188">188</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; arr.length; j++) {
+<a class="jxr_linenumber" name="L189" href="#L189">189</a>             arr[j] = GLD_RATIO;
+<a class="jxr_linenumber" name="L190" href="#L190">190</a>         }
+<a class="jxr_linenumber" name="L191" href="#L191">191</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; 4; j++) {
+<a class="jxr_linenumber" name="L192" href="#L192">192</a>             shuffle();
+<a class="jxr_linenumber" name="L193" href="#L193">193</a>         }
+<a class="jxr_linenumber" name="L194" href="#L194">194</a>         <em class="jxr_comment">// fill in mem[] with messy stuff</em>
+<a class="jxr_linenumber" name="L195" href="#L195">195</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; SIZE; j += 8) {
+<a class="jxr_linenumber" name="L196" href="#L196">196</a>             arr[0] += rsl[j];
+<a class="jxr_linenumber" name="L197" href="#L197">197</a>             arr[1] += rsl[j + 1];
+<a class="jxr_linenumber" name="L198" href="#L198">198</a>             arr[2] += rsl[j + 2];
+<a class="jxr_linenumber" name="L199" href="#L199">199</a>             arr[3] += rsl[j + 3];
+<a class="jxr_linenumber" name="L200" href="#L200">200</a>             arr[4] += rsl[j + 4];
+<a class="jxr_linenumber" name="L201" href="#L201">201</a>             arr[5] += rsl[j + 5];
+<a class="jxr_linenumber" name="L202" href="#L202">202</a>             arr[6] += rsl[j + 6];
+<a class="jxr_linenumber" name="L203" href="#L203">203</a>             arr[7] += rsl[j + 7];
+<a class="jxr_linenumber" name="L204" href="#L204">204</a>             shuffle();
+<a class="jxr_linenumber" name="L205" href="#L205">205</a>             setState(j);
+<a class="jxr_linenumber" name="L206" href="#L206">206</a>         }
+<a class="jxr_linenumber" name="L207" href="#L207">207</a>         <em class="jxr_comment">// second pass makes all of seed affect all of mem</em>
+<a class="jxr_linenumber" name="L208" href="#L208">208</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; SIZE; j += 8) {
+<a class="jxr_linenumber" name="L209" href="#L209">209</a>             arr[0] += mem[j];
+<a class="jxr_linenumber" name="L210" href="#L210">210</a>             arr[1] += mem[j + 1];
+<a class="jxr_linenumber" name="L211" href="#L211">211</a>             arr[2] += mem[j + 2];
+<a class="jxr_linenumber" name="L212" href="#L212">212</a>             arr[3] += mem[j + 3];
+<a class="jxr_linenumber" name="L213" href="#L213">213</a>             arr[4] += mem[j + 4];
+<a class="jxr_linenumber" name="L214" href="#L214">214</a>             arr[5] += mem[j + 5];
+<a class="jxr_linenumber" name="L215" href="#L215">215</a>             arr[6] += mem[j + 6];
+<a class="jxr_linenumber" name="L216" href="#L216">216</a>             arr[7] += mem[j + 7];
+<a class="jxr_linenumber" name="L217" href="#L217">217</a>             shuffle();
+<a class="jxr_linenumber" name="L218" href="#L218">218</a>             setState(j);
+<a class="jxr_linenumber" name="L219" href="#L219">219</a>         }
+<a class="jxr_linenumber" name="L220" href="#L220">220</a>         isaac();
+<a class="jxr_linenumber" name="L221" href="#L221">221</a>         count = SIZE - 1;
+<a class="jxr_linenumber" name="L222" href="#L222">222</a>     }
+<a class="jxr_linenumber" name="L223" href="#L223">223</a> 
+<a class="jxr_linenumber" name="L224" href="#L224">224</a>     <em class="jxr_javadoccomment">/** Shuffle array. */</em>
+<a class="jxr_linenumber" name="L225" href="#L225">225</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> shuffle() {
+<a class="jxr_linenumber" name="L226" href="#L226">226</a>         arr[0] ^= arr[1] &lt;&lt; 11;
+<a class="jxr_linenumber" name="L227" href="#L227">227</a>         arr[3] += arr[0];
+<a class="jxr_linenumber" name="L228" href="#L228">228</a>         arr[1] += arr[2];
+<a class="jxr_linenumber" name="L229" href="#L229">229</a>         arr[1] ^= arr[2] &gt;&gt;&gt; 2;
+<a class="jxr_linenumber" name="L230" href="#L230">230</a>         arr[4] += arr[1];
+<a class="jxr_linenumber" name="L231" href="#L231">231</a>         arr[2] += arr[3];
+<a class="jxr_linenumber" name="L232" href="#L232">232</a>         arr[2] ^= arr[3] &lt;&lt; 8;
+<a class="jxr_linenumber" name="L233" href="#L233">233</a>         arr[5] += arr[2];
+<a class="jxr_linenumber" name="L234" href="#L234">234</a>         arr[3] += arr[4];
+<a class="jxr_linenumber" name="L235" href="#L235">235</a>         arr[3] ^= arr[4] &gt;&gt;&gt; 16;
+<a class="jxr_linenumber" name="L236" href="#L236">236</a>         arr[6] += arr[3];
+<a class="jxr_linenumber" name="L237" href="#L237">237</a>         arr[4] += arr[5];
+<a class="jxr_linenumber" name="L238" href="#L238">238</a>         arr[4] ^= arr[5] &lt;&lt; 10;
+<a class="jxr_linenumber" name="L239" href="#L239">239</a>         arr[7] += arr[4];
+<a class="jxr_linenumber" name="L240" href="#L240">240</a>         arr[5] += arr[6];
+<a class="jxr_linenumber" name="L241" href="#L241">241</a>         arr[5] ^= arr[6] &gt;&gt;&gt; 4;
+<a class="jxr_linenumber" name="L242" href="#L242">242</a>         arr[0] += arr[5];
+<a class="jxr_linenumber" name="L243" href="#L243">243</a>         arr[6] += arr[7];
+<a class="jxr_linenumber" name="L244" href="#L244">244</a>         arr[6] ^= arr[7] &lt;&lt; 8;
+<a class="jxr_linenumber" name="L245" href="#L245">245</a>         arr[1] += arr[6];
+<a class="jxr_linenumber" name="L246" href="#L246">246</a>         arr[7] += arr[0];
+<a class="jxr_linenumber" name="L247" href="#L247">247</a>         arr[7] ^= arr[0] &gt;&gt;&gt; 9;
+<a class="jxr_linenumber" name="L248" href="#L248">248</a>         arr[2] += arr[7];
+<a class="jxr_linenumber" name="L249" href="#L249">249</a>         arr[0] += arr[1];
+<a class="jxr_linenumber" name="L250" href="#L250">250</a>     }
+<a class="jxr_linenumber" name="L251" href="#L251">251</a> 
+<a class="jxr_linenumber" name="L252" href="#L252">252</a>     <em class="jxr_javadoccomment">/** Set the state by copying the internal arrays.</em>
+<a class="jxr_linenumber" name="L253" href="#L253">253</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L254" href="#L254">254</a> <em class="jxr_javadoccomment">     * @param start First index into {@link #mem} array.</em>
+<a class="jxr_linenumber" name="L255" href="#L255">255</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L256" href="#L256">256</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> setState(<strong class="jxr_keyword">int</strong> start) {
+<a class="jxr_linenumber" name="L257" href="#L257">257</a>         mem[start] = arr[0];
+<a class="jxr_linenumber" name="L258" href="#L258">258</a>         mem[start + 1] = arr[1];
+<a class="jxr_linenumber" name="L259" href="#L259">259</a>         mem[start + 2] = arr[2];
+<a class="jxr_linenumber" name="L260" href="#L260">260</a>         mem[start + 3] = arr[3];
+<a class="jxr_linenumber" name="L261" href="#L261">261</a>         mem[start + 4] = arr[4];
+<a class="jxr_linenumber" name="L262" href="#L262">262</a>         mem[start + 5] = arr[5];
+<a class="jxr_linenumber" name="L263" href="#L263">263</a>         mem[start + 6] = arr[6];
+<a class="jxr_linenumber" name="L264" href="#L264">264</a>         mem[start + 7] = arr[7];
+<a class="jxr_linenumber" name="L265" href="#L265">265</a>     }
+<a class="jxr_linenumber" name="L266" href="#L266">266</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/03/03ead25f189b7483d865254b4ebde30e4aaf248a.svn-base
----------------------------------------------------------------------
diff --git a/commons-rng-core/site-content/.svn/pristine/03/03ead25f189b7483d865254b4ebde30e4aaf248a.svn-base b/commons-rng-core/site-content/.svn/pristine/03/03ead25f189b7483d865254b4ebde30e4aaf248a.svn-base
new file mode 100644
index 0000000..f326c98
--- /dev/null
+++ b/commons-rng-core/site-content/.svn/pristine/03/03ead25f189b7483d865254b4ebde30e4aaf248a.svn-base
@@ -0,0 +1,139 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Commons Rng 1.0-SNAPSHOT Reference Package org.apache.commons.rng.internal.util</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+		      	<div class="overview">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../overview-summary.html">Overview</a>
+          		</li>
+          		<li class="selected">Package</li>
+        	</ul>
+      	</div>
+      	<div class="framenoframe">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../index.html" target="_top">FRAMES</a>
+          		</li>
+          		<li>
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>
+          		</li>
+        	</ul>
+      	</div>
+		
+		      	<h2>Package org.apache.commons.rng.internal.util</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="ByteArray2IntArray.html" target="classFrame">ByteArray2IntArray</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="ByteArray2LongArray.html" target="classFrame">ByteArray2LongArray</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="Int2Long.html" target="classFrame">Int2Long</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="IntArray2Int.html" target="classFrame">IntArray2Int</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="IntArray2LongArray.html" target="classFrame">IntArray2LongArray</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="Long2Int.html" target="classFrame">Long2Int</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="Long2IntArray.html" target="classFrame">Long2IntArray</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="Long2LongArray.html" target="classFrame">Long2LongArray</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="LongArray2IntArray.html" target="classFrame">LongArray2IntArray</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="LongArray2Long.html" target="classFrame">LongArray2Long</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="NoOpConverter.html" target="classFrame">NoOpConverter</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="NumberFactory.html" target="classFrame">NumberFactory</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SeedConverter.html" target="classFrame">SeedConverter</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SeedConverterComposer.html" target="classFrame">SeedConverterComposer</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="SeedFactory.html" target="classFrame">SeedFactory</a>
+              		</td>
+            	</tr>
+				        	</tbody>
+      	</table>
+		
+		      	<div class="overview">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../overview-summary.html">Overview</a>
+          		</li>
+          		<li class="selected">Package</li>
+        	</ul>
+      	</div>
+      	<div class="framenoframe">
+        	<ul>
+          		<li>
+            		<a href="../../../../../../index.html" target="_top">FRAMES</a>
+          		</li>
+          		<li>
+            		<a href="package-summary.html" target="_top">NO FRAMES</a>
+          		</li>
+        	</ul>
+      	</div>
+				<hr />
+		<div id="footer">
+			Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
+		</div>
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/03/03f813052e371f47e23b55592ad3b76600b3c2c2.svn-base
----------------------------------------------------------------------
diff --git a/commons-rng-core/site-content/.svn/pristine/03/03f813052e371f47e23b55592ad3b76600b3c2c2.svn-base b/commons-rng-core/site-content/.svn/pristine/03/03f813052e371f47e23b55592ad3b76600b3c2c2.svn-base
new file mode 100644
index 0000000..477e327
Binary files /dev/null and b/commons-rng-core/site-content/.svn/pristine/03/03f813052e371f47e23b55592ad3b76600b3c2c2.svn-base differ


Mime
View raw message