title: Using enumerate to select random member of list
body: <p>Lets say mylist is list of 70 elements, I would like to random select 0,12,5 elements from mylist. I get syntax error at "rand:"</p>
  
  <pre><code>rand = [0, 12, 5]
  LL=[]
  for x in enumerate(mylist) if i in rand:
          LL.append(x)        
  </code></pre>