/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.unca.cs.csci202;

/**
 *
 * @author J Dean Brock <brock@unca.edu>
 */
public class Driver1080 {

    private static void setRandom(Point1080 p) {
        p.setX((int)(Math.random()*1920));
        p.setY((int)(Math.random()*1080)) ;
    }
    
    
    private static void printPoints(Point1080[] V) {
        for (Point1080 E : V) {
            System.out.format("(%4d,%4d)\n", E.getX(), E.getY()) ;
        }
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Point1080[] triangle = new Point1080[3] ;
        triangle[0] = new Point1080() ;
        triangle[1] = new Point1080() ;
        triangle[2] = new Point1080() ;
        
        for (Point1080 p : triangle) {
            setRandom(p) ;
        }
        
        printPoints(triangle) ;
        
        for (Point1080 p : triangle) {
            System.out.println(p) ;
        }

    }
}
