Potentially over-engineering, but we could create a simple function that takes a list and a value, and returns the item in that list with that value.  We might even be able to make the generateSetterCode smarter about that, where we pass it the entire list of values and it looks for the random one.  Then, if we decide we want to change the order again in the future we dont have to worry about finding all the places we need to change.