human
How to pull a random record using Django's ORM?
assistant
Here is some code to get a random record from model 'MyModel' using django's orm

MyModel.objects.order_by('?').first()

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