function lanes = UAM_gen_paths(airway,v1,v2)
%

done = 0;
v = zeros(5,1);
v(1) = v1;
v(5) = v2;
%while done==0
%    clf
    p = randperm(34) + 1;
    v(2:4) = p(1:3);
    dists = zeros(5,1);
    dists(1) = norm([1,1]-[6,6]);
    xy_vals = zeros(5,2);
    xy_vals(1,:) = [1,1];
    xy_vals(5,:) = [6,6];
    for k = 2:4
        x = mod((v(k)-1),6) + 1;
        y = floor((v(k)-1)/6) + 1;
        xy_vals(k,:) = [x,y];
        dists(k) = norm([6,6]-[x,y]);
    end
    [vals,indexes] = sort(dists,'descend');
    v = v(indexes);    
    lanes = UAM_flight_path(airway,v(1),v(2));
    lanes = [lanes;UAM_flight_path(airway,v(2),v(3))];
    lanes = unique([lanes;UAM_flight_path(airway,v(3),v(5))]);
%    lanes = [lanes;UAM_flight_path(airway,v(4),v(5))];
%    traj = UAM_lanes2traj(airway,lanes);
%    UAM_show_traj(traj,'k-');
%    done = input('done? (0: no; 1:yes): ');
%end
