def create_random_files(tmpdirname, num_of_files=10):
    """
    Create random files in dir given
    """
    _files_created = []

    # Create random files
    for i in range(1, num_of_files + 1):
        _object_key = f"{i}{i}{i}.txt"
        _test_file = tmpdirname.join(_object_key)
        _test_file.write("XXXXXXXXXXX")
        _files_created.append(_object_key)

    return _files_created