✅ enumeration help
can you call on the “index” of an entry in an enumeration? like say theres 3 options,
if a random int is used to select between the array, can i also use that same random int to call upon the corresponding enumeration? i.e.
sorry if the question doesnt make sense, i can rephrase
red, blue, green, and i have an array with 1, 2, 3.if a random int is used to select between the array, can i also use that same random int to call upon the corresponding enumeration? i.e.
red being called at the same time/in a similar way as 1, blue and 2, etcsorry if the question doesnt make sense, i can rephrase