In the following code:

for(int i=0;i<number;i++){
value = (rand()%100)+1;
value = array[i];

cout<<value<<endl;
}
You are not actually ever using...