def get_random_user():
 users_count = Profile.objects.all().count()
 random_index = randint(0, (users_count - 1))
 return Profile.objects.all()[random_index]

def get_random_user ( ) : users_count = Profile . objects . all ( ) . count ( ) random_index = randint ( 0 , ( users_count - 1 ) ) return Profile . objects . all ( ) [ random_index ]
get a random user .