title: Pseudocode interpretation
body: <p>How would the following pseudocode translate into Python?</p>
  
  <pre><code>function IntNoise(32-bit integer: x)             
  
      x = (x&lt;&lt;13) ^ x;
      return ( 1.0 - ( (x * (x * x * 15731 + 789221) + 1376312589) &amp; 7fffffff) / 1073741824.0);    
  
  end IntNoise function  
  </code></pre>
  
  <p>I'm not sure about the following items: the <code>32-bit integer: x</code> argument in the <code>IntNoise</code> call ; the <code>&lt;&lt;</code>, and the <code>&amp;7fffffff</code>.</p>
  
  <p>The function is a random number generator from this webpage:  <a href="https://web.archive.org/web/20160510013854/http://freespace.virgin.net/hugo.elias/models/m_perlin.htm" rel="nofollow noreferrer">Perlin Noise</a>.</p>