I'm trying to make a quiz in Django, and I need to get ten random elements from the class Question in a template. This ten elements will be then used in a for loop inside that same template to show on screen the ten random questions to the user.
Any ideas on how to select a certain number of random objects in a Django template? Thank you in advance!