creating random object instances using 3d array

i am in need like i want to stack multiple random objects from custom input list to create a 3d array. for example: i have 8 type of Pallet loads those need to stacked into random locations in multiple storage racks. please help