... if (distilledwater==0 and HCl==0 and NaOH==0) {Randomquestion=rand()% 12 + 1; //Just Powder Questions if (Randomquestion==1) {cout << "What color was the powder?\n";} if (Randomquestion==2) {cout << "What was the shape and relative size of the particles of the powder?\n";} if (Randomquestion==3) {cout << "Would you describe the structure of the powder as amorphic, uniform crystalline or irregular crystalline?\n";} if (Randomquestion==4) {cout << "Did the substance have and odor, if so what was it like?\n";} if (Randomquestion==5) {cout << "Describe the luster of the powder.\n";} if (Randomquestion==6) {cout << "What was the density of the powder? \n";}... |
srand(time(NULL));
srand(time(NULL));
before them, they will always be the same a question one, but if I put srand (1);
or other numbers in front of them, they will always be the same question as they were the last time.