Hello everybody,
I wanna help to writing this program.

Q/ Write Prog. that generates Random Binary sequenced by Using shiftRegister o f Length (10).

thnx 4 Help

I don't know any thing about that :(
plz help

Edited 7 Years Ago by saadulla89: n/a

Its ok no problems...You can start reading now and post all your doubts here... You'll get help definitely...

i know some simple things about c++, and i know write some simple programs,
but till now I can't writing codes by my informations Idea..


sorry 4 my bad English


thanks a lot.

Edited 7 Years Ago by saadulla89: n/a

..so do you need to generate a random 10 digit binary sequence using the bitshift operators? (<< and >>)

You can try googling a Tausworthe generator - that's the most common random generation function that uses a shift register and I think that's what you'd want to use.

I couldn't find any concrete C++ examples but good luck anyway :|

I don't find from Google
please help... does any one can help me??? and wrote to me compelete program????

I don't find from Google
please help... does any one can help me??? and wrote to me compelete program????

I don't think you will get somebody to make your homework, put in the place of the other people, they would be working for free by doing other's homework.

Who is ordering you to make that program and why?

so a newbie:

start here

#include <bitset>
#include <cstdlib>

int main(){
// you will need some sort of a loop 
for (int i =0; i < 5; i++){ // go from 0..5, you could even use a while loop or a do-while loop
// here you generate number using that method shiftRegister()
// use method rand() to randomize  
}
return 0;

}

without more information i really can't help.

Edited 7 Years Ago by drjay1627: n/a

#include <iostream.h>
int main(){
// you will need some sort of a loop
int n;
for (int i =0; i < 10; i++){ // go from 0..5, you could even use a while loop or a do-while loop
// here you generate number using that method shiftRegister()
//i dont know how is shift register! (?)


// use method rand() to randomize
randomize();
n=random (10)+i;
}

can any one fix errors with me and help me?

thnx.

Salam Mr.Saad
this is not the way u ask.
show some code, or ur attempt, if u are stuck somewhere. we will help u.

Salam Mr.Saad
this is not the way u ask.
show some code, or ur attempt, if u are stuck somewhere. we will help u.

ok, i wanna to be learn this program but i don't know what is siftregister method

can u explain it for me?

This article has been dead for over six months. Start a new discussion instead.