class Kickoff { public static void main (String [ ] args) { String rhubarb; String [] yummy; int x; x = (int) ( Math.random() * 2000 ); yummy = new String[5]; yummy[0] = "The first one"; yummy[1] = "ouch"; yummy[2] = "I'm \"alive\" ... really I am, at least that's what I think!"; yummy[3] = "This can't be happening, \nat least not often."; yummy[4] = "the last one"; //if (x < 1000) // rhubarb = yummy[1]; //else if (x < 1750) // rhubarb = yummy[2]; //else // rhubarb = yummy[3]; //if (x<2000) rhubarb = yummy[x%yummy.length]; System.out.println(rhubarb); } }