title: Equally spaced elements between two given number
body: <p>I am working with video files. I have a start frame no. x (say 10) and a stop frame no. y (say 200). I want to pick up "n" frames (say n=8) between x and y. These "n" number of frames should be <strong>unique</strong> and <strong>equally spaced</strong> between x and y. </p>
  
  <p>Please suggest the fastest way to do this in Python 3.x. Presently I am using this: </p>
  
  <pre><code>list = random.sample(range(start_frame,stop_frame), int((stop_frame-start_frame)/n))
  </code></pre>
  
  <p>This gives me unique frames but not equally spaced. How can I get equally spaced frames between the start and stop frame nos. </p>