list_query = List.query()
list_query = list_query.filter(List.counter > 5)
list_query = list_query.filter(List.ignore == False)
list_keys = list_query.fetch(keys_only=True)
list_keys = random.sample(list_keys, 10)
lists = [list_key.get() for list_key in list_keys]
How to get 10 random GAE ndb entities?