How to create a program to print only binary numbers randomly upto infinity | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create a program to print only binary numbers randomly upto infinity

2nd Mar 2020, 2:53 PM
YESHWANTH MR
YESHWANTH MR - avatar
2 Answers
+ 5
You can generate a random string of 0 and 1 upto atmost length l which you consider good enough for approaching to infinity.
2nd Mar 2020, 4:01 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
You sure you want to do this till infinity? It would be preferable if you did to what would be eғғecтιvely infinity. Like a really large number.
2nd Mar 2020, 3:42 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar