title: Replicate a T-SQL random function in Python
body: <p>I have a T-SQL code and I want to run a few simulations in Python. There is a code that includes random functions and I am not sure how I can replicate it.</p>
  
  <p>When I have <code>RAND()</code> in SQL, I just use this in Python:</p>
  
  <pre><code>import random as random
  print random.random()
  </code></pre>
  
  <p>But, I have also this code: <code>RAND(CHECKSUM(NEWID()))</code></p>
  
  <p>I guess, it is used for some kind of seed in the <code>RAND</code> function. But, how I can replicate the same thing in Python to have as much closer results I could?</p>