It's not a glitch, what happens is the player pulls out the paper, and on it you see the cat you got :)
But it never works for me? i never get a cat from it.
Check the shop first. If it is empty do not Random. If it is not empty,do as many Random as you please
what you mean by empty