title: Why do I get several records in select using random function in postgres?
body: <p>This is my query:</p>
  
  <pre><code>SELECT id, geom from lars.punkt where id = (floor(random () * 99))::integer;
  </code></pre>
  
  <p>This is the result:</p>
  
  <pre><code>id    geom
  40  "010100000000000000000010400000000000000000"
  80  "010100000000000000000020400000000000000000"
  88  "010100000000000000000020400000000000002040"
  </code></pre>
  
  <p>What is happening? I can also get 2 lines or zero lines.</p>
  
  <p>I am expecting 1 line.</p>
  
  <p>Is it the database which is "slow" or the code?</p>