title: random.sample in Python 3 (jupyter notebook)
body: <p>When using Canopy I can do</p>
  
  <pre><code>from scipy import *
  import pylab as py
  import random
  
  aa = random.sample(arange(1,4,0.5),1)
  </code></pre>
  
  <p>whereas in the Jupyter notebook it complaints with the following:</p>
  
  <pre><code>  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-59-e33979a68ee1&gt; in &lt;module&gt;()
  ----&gt; 1 cc = random.sample(arange(1,4,0.5), 1)
  
  /u/rscratch/bm485/anaconda3/lib/python3.5/random.py in sample(self, population, k)
  309             population = tuple(population)
  310         if not isinstance(population, _Sequence):
  --&gt; 311             raise TypeError("Population must be a sequence or set.  For dicts, use list(d).")
  312         randbelow = self._randbelow
  313         n = len(population)
  
  TypeError: Population must be a sequence or set.  For dicts, use list(d).
  </code></pre>
  
  <p>How can I fix this?</p>