title: How can I store a result of a function in a variable instead of just printing it?
body: <p>I'm trying to store the result of <code>random.random</code> into a variable like so:</p>
  <pre><code>import  random
  
  def randombb():
      a = random.random()
      print(a)
   
  randombb()
  </code></pre>
  <p>How can I properly get <code>a</code>?</p>