So you want to spawn a copy of one of the items from the inventory?
And what do you mean by "no duplicates"? Once one item is spawned, it can't be spawned again?
Here is one way to do this:
yes and no... I want to basically randomly drop one of the items from my inventory not make a copy onto the layout. lets say I pick up these... 4 blue items, two red items and 1green item. I right click and a red item drops someplace on the layout like the middle of the screen. now there's only 1 red item left. if I right click again... maybe this time a blue item drops and now there's only 3 blue items left. I right click again and this time I get another red item. now there's no more red items left in my inventory so all that I can randomly spawn now is 3 blue and 1 green item. The 2 red items are on the layout now. so basically there has to be something actually in my inventory for this to work so if my character doesn't pick up anything... no items can get randomly dropped.