## Birthday Spacing test

Hi,

Could someone please help me to understand the Birthday Spacing test?
Suppose that I have one sample (1,3,9,40,20,50,..., 91), say, and I want to use it for testing the random number generator (that takes value on (0,99), for example).

How can it be done using the Birthday Spacing test? Because as far as I know, I'd have to create N samples of size n from that generator in order to use this test and, for each sample, calculate the spaces between the n elements and count the number of repeated values among those spaces. It would have an asymptotic poisson distribution and then the chi-square test could be used.

Or it can be done using just one sample? If yes, how?

Thanks in advance!
Gustavo