title: Selecting a random list element of length n in Python
body: <p>I know you can use random.choice to choose a random element from a list, but I am trying to choose random elements of length 3. For example, </p>
  
  <pre><code>list1=[a,b,c,d,e,f,g,h]
  </code></pre>
  
  <p>I want the output to look something like:</p>
  
  <pre><code>[c,d,e]
  </code></pre>
  
  <p>Essentially I want to generate random sub-lists from the list.</p>