from typing import List
import random


def create_random_vector(n: int, b: int) -> List[int]:
    """create n random numbers that sum to b"""
    values = [random.randrange(1, b) for _ in range(n)]
    s = sum(values)  # normalize val
    values = [int(v * b / s) for v in values]
    values[0] = b - sum(values[1:])  # adjust sum for possible rounding errors
    return values