No idea what this was called but your friend was supposed to say a number and then you sort of moved it between your fingers till the number and then they would choose one of the numbers on the paper.
Clip of Grease from MuchMoreMusic/Paramount Pictures. Song: You're The One That I Want. Sung by: John Travolta, Olivia Newton-John & the Cast
The Muppets 1972