human
How to get two random records with Django
assistant
Here is some code to get two random records from model 'MyModel' in Django

MyModel.objects.order_by('?')[:2]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.