title: How do you test that something is random? Or "random enough'?
body: <p>I have to return a random entry from my database. </p>
  
  <p>I wrote a function, and since I'm using the <code>random</code> module in Python, it's probably unless I used it in a stupid way.</p>
  
  <p>Now, how can I write a unit test that check that this function works? After all, if it's a good random value, you can never know.</p>
  
  <p>I'm not paranoid, my function is not that complex and the Python standard library is 1000 x
  time good enough for my purpose. I'm not doing cryptography or something critical. I'm just curious to know if there is a way.</p>