title: uniform_int_distribution used wrong here? (my results seem not equally distributed)
body: <p><strong>Version 3</strong> Moved generator into a class. Is my new random number generation technique correct this time?</p>
  
  <pre><code>template&lt;typename T = int&gt;
      class MyRandomGenerator
      {
      public:
          MyRandomGenerator()
          {
              std::random_device rd;
              gen = std::mt19937{rd()};
          }
  
          T getNumber(const T&amp; From, const T&amp; To)
          {
              std::uniform_int_distribution&lt;T&gt; dist(From, To);
              return dist(gen);
          }
      private:
          std::mt19937 gen;
      };
  </code></pre>
  
  <p>And here my new position calculators:</p>
  
  <pre><code>auto calculate_x_position = [&amp;]() -&gt;sf::Uint32 {return RandGen.getNumber(0, W - 1); };
  auto calculate_y_position = [&amp;]() -&gt;sf::Uint32 {return RandGen.getNumber(0, H - 1); };
  </code></pre>
  
  <p>Same pattern/problem as before: 
  <img src="https://i.stack.imgur.com/7kY4u.jpg" alt="enter image description here"></p>
  
  <p><strong>Version 2</strong> Creating ~3 maps per second of 10.000 stars per map. The outcome is still the same. Moreover, it gets even more clear that there is a pivot to the top of the maps. Example: <img src="https://i.stack.imgur.com/ZNUsG.jpg" alt="enter image description here"></p>
  
  <p><strong>Original Question:</strong>
  i went into trying to draw a simple star map. For this i first calculate the x and y position for the stars. X and Y are within the range of width and height of the window.</p>
  
  <p>This is my random number generating function:</p>
  
  <pre><code>    template&lt;typename T&gt;
      T getRandomNumberBetween(const T&amp; Min, const T&amp; Max)
      {
          static std::random_device rd;
          static std::uniform_int_distribution&lt;T&gt; dist{Min, Max};
          return dist(rd);
      }
  </code></pre>
  
  <p>And i use it like this:</p>
  
  <pre><code>auto calculate_x_position = std::bind(inc::getRandomNumberBetween&lt;sf::Uint32&gt;, 0, Width-1);
      auto calculate_y_position = std::bind(inc::getRandomNumberBetween&lt;sf::Uint32&gt;, 0, Height-1);
  x = calculate_x_position(); //...
  </code></pre>
  
  <p>But as i draw my map over and over again it seems to me that there is a pivot to where most stars tend to be. E.g. the majority of stars are in the upper half of my window.</p>
  
  <p>Example:</p>
  
  <p><img src="https://i.stack.imgur.com/JqAIo.jpg" alt="enter image description here"></p>
  
  <p>Am i using it wrong or having a wrong expectation here?... Because <a href="http://www.cplusplus.com/reference/random/uniform_int_distribution/" rel="nofollow noreferrer">here</a> it says: </p>
  
  <blockquote>
    <p>This distribution produces random integers in a range [a,b] where each
    possible value has an equal likelihood of being produced.</p>
  </blockquote>
  
  <p>Kind Regards</p>