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;
generation of random numbers
for a in range(0, 5000): a=random.sample(range(0, 5000), 5000) print (a) plt.plot(a) plt.show()
This code is running perfectly. but I want Binary numbers instead of Decimal numbers. kindly help me in this regard.