in your "on click..." script, you're calling generate[] before you choose a new random value for enum1.
ahh thank you!