I want to do is shuffle the array below every time I load my console application. For example batman could be next to name[1]
, name[2]
or name[3]
instead of 'name[0]' every time.
heroes[] names = new heroes[4];
names[0] = batman;
names[1] = ironman;
names[2] = hulk;
names[3] = flash;
How to do it?