Yeah you can always just swipe any of mine and cut out what you don't want.
There are 2 parts to a generator page - the HTML that shows the page itself, and the portion of script which is the generator itself.
Here's one of my ... um, shorter generators. It's still rather array-heavy but at least it'll be easy to trim down.
http://www.geocities.com/abode_elf_dollz/elfnamer.htm
Just right-click, 'this frame' because it's a geocities frame, view source and you can copy the whole thing into a notepad file.
The generator code with content looks like this:
var aVocab = new Array();
var intIncr
var intCat
intCat =0
intIncr =0
aVocab[intCat]= new Array();
aVocab[intCat][0]="BASE"
aVocab[intCat][1] = new Array()
aVocab[intCat][1][intIncr++]="<WORD>"
intCat++
intIncr=0
aVocab[intCat]= new Array();
aVocab[intCat][0]="WORD"
aVocab[intCat][1] = new Array()
aVocab[intCat][1][intIncr++]="<ONE>"
aVocab[intCat][1][intIncr++]="<TWO>"
intCat++
intIncr=0
aVocab[intCat]= new Array();
aVocab[intCat][0]="ONE"
aVocab[intCat][1] = new Array()
aVocab[intCat][1][intIncr++]="<ANIMALS>"
aVocab[intCat][1][intIncr++]="<ANIMALS>"
***
The java code at the bottom of the page is similar to that stuff Dray showed you. (don't forget to remove the html that Geocities adds. lol!)
Basically everything inside the "quotes" is what will eventually show up on the screen. When it's <BRACKETS> that leads to another array which has that name. (Above, would be "ONE" is the new array. It leads to other arrays with words in them.)
Watch for incomplete "quotes" because a missing " mark will ruin the whole thing.
But by all means feel free to swipe my code.

I swiped it from Steven Savage and the seventh sanctum. He no longer uses Java to code, he uses psp so I can't do that stuff like he does any more... But I like my arrays.
