How can I randomly select and display 5 questions for the user?
The rest of the questions should be hidden on the page and only 5 questions should be displayed.
This is a sample code. I want the user to see 5 questions out of many questions when the page loads.
<form>
<table>
<tbody>
<tr id="Tr0">
<td>Question 1: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr1">
<td>Question 2: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr2">
<td>Question 3: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr3">
<td>Question 4: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr4">
<td>Question 5: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr5">
<td>Question 6: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr6">
<td>Question 7: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr7">
<td>Question 8: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr8">
<td>Question 9: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr9">
<td>Question 10: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
</tbody>
</table>
</form>