title: Random Choice with Pytorch?
body: <p>I have a tensor of pictures, and would like to randomly select from it. I'm looking for the equivalent of <code>np.random.choice()</code>. </p>
  
  <pre><code>import torch
  
  pictures = torch.randint(0, 256, (1000, 28, 28, 3))
  </code></pre>
  
  <p>Let's say I want 10 of these pictures.</p>