title: randomly selecting 100 companies data on s&p 500 companies
body: <p>I have been given three csv files one containing S &amp; P 500 companies, the other two containing the data on their volumes and returns. how do i select 100 companies out of these 500 companies randomly in Python</p>
  
  <pre><code>from random import seed
  from random import choice
  
  seed(2)
  numbers = [i for i in range(100)]
  
  print(data)
  
  for _ in range(50):
      selection = choice(numbers)
      print(selection)
  </code></pre>