title: Python Random Color Generation using Turtle
body: <p>I need to generate a random color using r g b values to fill in these rectangles for a python school assignment, I'm getting a bad color sequence error even though I'm fairly sure I'm formatting it just as the <a href="https://docs.python.org/3/library/turtle.html#turtle.color" rel="nofollow">Python documentation</a> suggests.</p>
  
  <pre><code>r = random.randrange(0, 257, 10)
  g = random.randrange(0, 257, 10)
  b = random.randrange(0, 257, 10)
  
  
  def drawRectangle(t, w, h):
      t.setx(random.randrange(-300, 300))
      t.sety(random.randrange(-250, 250))
      t.color(r, g, b)
      t.begin_fill()
      for i in range(2):
          t.forward(w)
          t.right(90)
          t.forward(h)
          t.right(90)
      t.end_fill()
      t.penup()
  </code></pre>
  
  <p>I'm quite confused as to why t.color(r, g, b) is not producing a random color?</p>