private static String[] names = { "Terminator", "Slicer","Ninja", "cow", "Robot", "littlegirl" }; name = names[(int) (Math.random() * names.length)]; System.out.println(name);