I\'m having trouble using a function. I have a project divided into several files, I created a function that randomly chooses the values of an enumeration. I noticed that if