Random items dropping

I have posted a video in another thread about this although I was dropping items, not placing them. The item beside the chosen item drops instead or with the item.