title: Error: The operator == is undefined for the argument type(s) float, void' (libgdx)
body: <p>I get the message as the title says when running this code:  </p>
  
  <pre><code>if (houseArray.size() &gt; 0 &amp;&amp; houseArray.get(0).getY() == random() ) {
          addNewHouse();
          addNewRightHouse();
  
      };
  </code></pre>
  
  <p>I want my code to run those two functions when a house passes a random Y- coordinate. 
  This is the random() function: </p>
  
  <pre><code>private void random() {
  
      MathUtils.random(0, 1200);
  }
  </code></pre>
  
  <p>What could I been doing wrong?</p>
  
  <p>Thanks in advance</p>