title: generation of random binary numbers in python
body: <p>I want to print or plot list of binary numbers which are randomly generated. I have print and plot random numbers between 1 and 5000 and my code is as under;</p>
  
  <h1>generation of random numbers</h1>
  
  <p>for a in range(0, 5000):
   a=random.sample(range(0, 5000), 5000)
   print (a)
   plt.plot(a)
   plt.show()</p>
  
  <p>This code is running perfectly. 
  but I want Binary numbers instead of Decimal numbers.
  kindly help me in this regard. </p>