title: How do I use randrange() on a random seed in python 3?
body: <p>So, I was asked in class to use the specific random seed 237. But I don't know how to properly implement it. For example, this is my code. <em>in python 3</em>. 
  In this example I'm basically throwing m number of dice with k number of sides and trying to return a tuple of m length. </p>
  
  <pre><code>import random
  rng=random.seed(237)
  # create random number generator
  
  def throwDice(m, k):
      x = 0
      L = []
      while x &lt; m :
          die = rng.randrange(1,k+1)
          L.append(die)
          x+=1
      return print(tuple(L))
  throwDice(11,5)
  </code></pre>
  
  <p>Yet, the command prompt keeps showing the error </p>
  
  <pre><code>die = rng.randrange(1,k+1)
  AttributeError: 'NoneType' object has no attribute 'randrange'`
  </code></pre>
  
  <p>Could I get an explanation of what's wrong :(</p>