import torch


def random_data(seq_len=48, n_vars=6, n_tasks=3, n_samples=150, p_outcome=0.1):
    """
    Returns a sequence of random sequential data and associated binary targets.
    """
    tasks = [
        (torch.randn(n_samples,seq_len,n_vars), 
        (torch.rand(n_samples) < p_outcome).long()) for _ in range(n_tasks)
        ]
    return tasks