title: Shuffling Images in Python
body: <p>Hello Stackoverflow community, I am having trouble with a bit of code using the shuffle function:</p>
  
  <pre><code>red_image =  'DDtest/210red.png'
  green_image = 'DDtest/183green.png'
  b = [red_image, green_image]
  c = shuffle(b)
  win = visual.Window(size=(1280, 800), fullscr=True, screen=0, monitor='testMonitor', color=[-1,-1,-1], colorSpace='rgb')
  
  teststimulus = visual.ImageStim(win=win,
      image= c, mask=None,
      ori=0, pos=pos1, size=[0.5,0.5],
      color=[1,1,1], colorSpace='rgb', opacity=1,
      flipHoriz=False, flipVert=False,
      texRes=128, interpolate=True, depth=-1.0)
  
  teststimulus.setAutoDraw(True)
  win.flip()
  event.waitKeys(keyList = ['space'])
  </code></pre>
  
  <p>What this program is supposed to do is shuffle the order of the picture is displayed. For whatever reason, when I do this it just displays a white block instead. I certain the problem is the shuffle function because it works fine is I try to display a static picture. Any advice as to what the problem might be? Any help will be greatly appreciated. :)</p>