import secrets


def create_random_int(n: int = 1000):
    """
    Create random int based on the parameter given

    Args:
        n (int, optional): Max value of the random int. Defaults to 1000.

    Returns:
        int: returns a random int below the given parameter
    """
    return secrets.randbelow(n+1)