Need Code Review
Pay attention to the random generator.