import java.util.Random;

public class Faculty {
    
    static Random rnd = new Random();
    /*public int compareTo( Member  m ) {
        //int mID = (Member m).
        return ID - m.ID ;// m is the one you compare to 
    }*/
    public Faculty () {
        generate();
    }	
    
    public void generate() {
        // ID = rnd.nextInt( 999999999 - 100000000 ) + 100000000;
        ID = rnd.nextInt( 999999999 - 100000000 ) + 1000000;
        firstName = Names.firstName[ rnd.nextInt(180)];
        lastName = Names.lastName[ rnd.nextInt(180)];
    }

    public String toString() {
        return String.format("%03d-%02d-%04d %10s %-10s", ID /1000000, 
            ID / 10000 % 100, ID % 10000, firstName, lastName);
    }

    public String htmlRow() {

    }
    
    public String htmlColumns() {

    }
    
    protected String firstName = null, lastName = null, 
    protected String degreeHeld = null;
    int ID = 0;
}