Added include for cstdlib to include srand