/* Java is a place in Indonesia, a name of a coffee, and a 
language to which Sun Microsystems has some legal claims.
This was written by A. Deck  */

import java.util.*;

class rocklyric {

        public static void main(String arg[]){

	 String lyric[] = {"I", "you", "love", "hurt", "sad", "rock", "do",
		"baby", "man", "car", "sex", "rockin", "smokin", "forever",
		"ooo!", "uh-huh", "(Guitar solo)", "YEAH!", "can't" };


          int i, wrd = 5, sntc = 5;
          Random r = new Random();

	  System.out.println("Content-type: text/html\n\n\n"); 
	  System.out.println("<title>Rock Lyric Engine</title><body bgcolor=yellow>");

	    while(sntc>0){
                while(wrd>0){
		  i = Math.abs( r.nextInt()%lyric.length );
                  System.out.print(" "+lyric[i]);
                  wrd--;
                }
		System.out.println(".<p>\n");
	     sntc--;
	     wrd=5;
	    }
	  System.out.println("<form action=\"rocklyric.cgi\">");
	  System.out.println("<input type=\"submit\" value=\"Next verse\">");
	  System.out.print("<p><hr size=5><p>Rock Lyric Engine is copy-lefted");
	  System.out.println(" by <a href=/andyland.html>");
	  System.out.println("A. Deck</a><br>");
	  System.out.println("<a href=\"rocklyric.java\">Source</a> code.");
        }
}

