0
Is it possible to create a random binary generator if yes please help me out the programming thanks in advance for your help.
6 ответов
+ 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.
+ 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.👍🤘
0
I'll take the second option do you know how?
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)
0
duh I already try Google but couldn't find anything
and I want a program that directly generates binary code
- 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