from typing import Tuple
from typing import List
import random


def create_random_list(numbers: int, range_: Tuple[int, int], duplicates: bool = True) -> List[int]:
    """
    Generates list of random, unsorted numbers from given range.
    :param numbers: how many numbers do you want?
    :param range_: what is a range you want to generate numbers from; two numbers as the beginning and the end of range
    :param duplicates: do you want duplicates in the result?
    :return: list of numbers
    """
    if duplicates:
        return random.choices(range(range_[0], range_[1] + 1), k=numbers)
    return random.sample(range(range_[0], range_[1] + 1), k=numbers)