import random


def generate_portfolio_inputs(tickers):
    """
    tickers: list of ticker str
    Returns tuple of list for random balance and target allocation
    """
    allocations = []
    balances = []
    for i in range(len(tickers)):
        a = random.random()
        b = round(random.uniform(1.0, 10000.0), 2)
        allocations.append(a)
        balances.append(str(b))
    allocations = [round(i / sum(allocations) * 100, 4) for i in allocations]
    return allocations, balances