Quiz form design : this is milind and i'm trying to design form for quiz. I have 15 question in database. I want to display 10 question for user with shuffling. But i have 1 problem to set question sequentially.

My php code is

    <form action="includes/backend_quiz.php" method="post">
    	<?php
    		$query=mysqli_query($conn, "SELECT * FROM quiz order by rand() LIMIT 10") or die("Could not retrieve data: " .mysqli_error($conn));
    			
    			if (mysqli_num_rows($query) > 0){			
    				while($row = mysqli_fetch_assoc($query)){				
    					extract($row);	
    	
    					?>
    						<input type="hidden" name="id" value="<?php echo $id ?>" />
    						<h4><?php echo $id ?>.&nbsp  <?php echo $quation; ?></h4><br />
    		
    						<input type="radio" name="response" value="a" /> <?php echo $opt1;?><br />
    						<input type="radio" name="response" value="b" /> <?php echo $opt2;?><br />
    						<input type="radio" name="response" value="c" /> <?php echo $opt3;?><br />
    						<input type="radio" name="response" value="d" /> <?php echo $opt4;?><br />
    						<br />
    					<?php
    
    			}
    		}		
    	?>
    	<input type="submit" name="ans" value="Finish"/>
    </form>

Output:[My quiz output][1]


  [1]: https://i.stack.imgur.com/q2mUf.png

So, how to set question sequentially like Q1. Q2. Q3. etc etc.