Random java practice.