0

Is it possible to create a random binary generator if yes please help me out the programming thanks in advance for your help.

21st Dec 2016, 7:52 AM
burner mahfuz
burner mahfuz - avatar
6 Respostas
+ 3
Yes it is possible in most programming languages. Search engine exists to help you out, but mainly this is what they tell you to do : - Generate a random stuff. - Convert the stuff to binary. OR - Directly generate a binary code.
21st Dec 2016, 7:57 AM
Wen Qin
Wen Qin - avatar
+ 2
yes it is possible...the first thing you should know is the functions rand, srand, randomise... these functions generate random no.s with there own specifics...for example:- rand will generate random no.s within a limit specified but it will generate same no.s next time the cod is run...so learn about this function and done.👍🤘
21st Dec 2016, 8:49 AM
manjeet singh
manjeet singh - avatar
0
I'll take the second option do you know how?
21st Dec 2016, 8:09 AM
burner mahfuz
burner mahfuz - avatar
0
I do know how for certain programming languages but you didn't state which one you needed. Plus search engine like google exists, just open up a browser, type in {"How to make a binary generator using " + ProgrammingLanguage} into the search bar and a list of results should come out, the one near the top are mostly reliable ones. (Yes, more reliable than me, unless I happen to be up there)
21st Dec 2016, 8:12 AM
Wen Qin
Wen Qin - avatar
0
duh I already try Google but couldn't find anything and I want a program that directly generates binary code
21st Dec 2016, 8:24 AM
burner mahfuz
burner mahfuz - avatar
- 1
just use this code to create a random array with 1oo bits of binary no srand(time(NULL)); int binary[100]; for(i=0;i<100;i++) { binary[i]=rand()%2; } if want explanation check out my codes all of them are helping
21st Dec 2016, 10:55 AM
Morpheus
Morpheus - avatar