import random


def get_texts_sampled(texts, number):
    """Returns a sample of size `number` from `texts`"""
    number_of_test_texts = min(number, len(texts))
    return random.sample(texts, number_of_test_texts)