So is it possible that I make an array of Itemstacks and get a random item from it and place it in an inventory? If so, how?
Arrays don't have a #get method https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html#nextInt-int-
Code: ItemStack[new Random().nextInt(ItemStack.Size+1)];; // or ArrayListofItemStacks.get(new Random().nextInt(ALOIS.size+1));;
You should definitely not instantiate new randoms each time, using ThreadLocalRandom is best for that use-case.
Or just crate once instance of Random() for your whole plugin, and reference that when getting a new randomInt.