Alan Rickman had a wicked sense of humour – shown by the fact he played an insane prank on Daniel Radcliffe on the set of Harry Potter.

The actor is seen failing to control his laughter in this video after placing a fart machine in the actor’s sleeping bag, and letting it go off during filming.

It took place during a scene filmed in the great hall on the set of The Prisoner of Azkaban way back in 2003, when all the students are gathered to sleep in one room.

According to director Alfonso Cuaron, 13-year-old Daniel asked to sleep next to a girl he fancied – and Rickman, joined by Michael Gambon who played Dumbledore, saw the perfect opportunity for a giggle.

In October 2014, Radcliffe told Reddit he thought it was the best prank ever pulled on the sets of the Harry Potter movies.