James Randi was fooled by a person with a trick that he did by using the matchbox. James Randi had no idea at that time how he did it.
Later on he worked on it and finally he was able understand the technique behind it. In this video he reveals how the trick works. Check it out!