 PURPOSE: This randomized phase III trial is studying the side effects of vaccine therapy when given with or without cyclophosphamide and to see how well they work in treating patients who have undergone surgery for stage II, stage III, or stage IV melanoma. 