//CIS 144 Fall2000 //A. Moghtan //Dan Carte import java.util.*; /*import java.util.x for use by array.sort.*/ class Pick { int p5[]=new int[6]; /* This is not right but it works*/ Pick() /*Contructor:Keeps p5 Local to Pick not global*/ { //System.out.print("here"); /*Left for debugging*/ int p5[]=new int[5]; } int pick5() /*This method seeds an arrray */ { /*for use by the method unique.*/ for (int i=0;i<5;i++) { /* Generate random# in the*/ p5[i] = (int) (Math.random() *46+1); /*array for P5[0] to P5[4]*/ } return p5[5]; /*return the array p5[]. */ } int[] unique() { for(int u=1;u<5;u++) /*Step through the array p5[].*/ { for(int k=0;k 128 || m=='\r') m=1; /* I can not read \r with ScreenIO*/ if (k%10==0) System.out.println("");/*print a space every 10'th*/ Pick mypick=new Pick(); /* ticket call all the rutines*/ mypick.gen_ticket(); /*needed for multiple ticket's.*/ k++; } while (k