Thread
:
Pick random value from enum
View Single Post
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
10-11-2016 , 08:13 Re: Pick random value from enum
#
2
By default, enum values start from zero and increment for each. You can pick a random number from 0 to 6 and use it as a value for your enum, though you might have to manually tag/view_as to avoid warnings.
Fyren
View Public Profile
Send a private message to Fyren
Find More Posts by Fyren