Creating vertical lines

I’ve tried several different ways
line(20, y, 20, random(50, 400));

line(x+20, y, 20, random(50, 400));

line(20, y, 400, random(50, 400));

line(20, y, 0, random(50, 400));

nothing works right