def getLine()

in lambda/lambda-mf-csv-generator/card.py [0:0]


def getLine():
    card_id = random.randint(5000,5999)*10000*10000*10000+random.randint(1000,1999)*10000*10000+random.randint(8000,8999)*10000+random.randint(2000,8999)
    x = random.randint(1,2)
    x = x*10
    y = x+50
    disp_id = random.randint(x,y)
    type = random.choice(['junior','classic','gold','classic','classic','gold'])
    daysago = random.randint(30,720)
    now = datetime.now() + timedelta(days=-daysago)
    str_now = now.isoformat()
    issued_datetime = str_now
    line = '%s,%s,%s,%s' % (card_id, disp_id, type, issued_datetime)
    return line