I am creating an NPC generator, in which all their attributes are randomly pulled from their respective collection of possible values. What would be the most efficient collection to use to store the possible values in order to randomly pull a value from or is there no real difference?
>Solution :
An ArrayList gives you the best performance for randomly choose a value because it has O(1) access time.
See here for a explanation: https://stackoverflow.com/a/322742/7142748