Which is more efficient, random item from array or random multigate?

As the title states, which one would be more efficient:

  • Creating an array of objects, then randomly choose between them
  • Create a multi-gate, set that to random, and spawn the objects that way

I’d say the 1st method, but I’m not sure. I suggest you loop through and do this ~500,000 times and print out the time it took with both methods.

That would kill my PC (I’m spawning HISMs with it)

I would be very surprised if you could measure a difference between the two in an actual game.
In general, though, arrays are more flexible than control flow (can be changed at runtime) so I’d prefer that option if I had the choice.