total_count = Content.objects.count()
no_of_subsets = 100 * 32768 / total_count
object_list = Content.objects.filter(subset__lte=no_of_subsets)
In Django, how do I select 100 random records from the database?