my problem is i designed a simple true/false test for one of my teachers and the questions are supposed to be random and not repeat themselves but i am constantly getting repeated numbers and i don't know why

Code:
int main(void)
{
	srand((unsigned)time(NULL)); 

	cout << "Randomized Safety Test v1.2.2\n\nPlease answer all question with a true(1) or false(0) answer.\n\n";
	do 
	{
		int question = rand()%48;

		switch(question)
		{case 1:// Question 1
			if(q1==0)
			{
				cout << count + 1 << ")   ESD is another term for static electricity.\n"
		     << " 0) false\t 1) true\n";
					

			cin >> answer;
			count++;
			int q1 = q1+1;
			if (answer == 1)	
			{
				score = score + 4;
				cout << "\n";
			}

			else 
				cout << "\n";
				break;
			}
			else
			{
				break;
			}
int q1 is the variable i tryed to use to keep my questions from repeating