runsUpTestStatistic

Computes the runs up test statistic for the array of supposedly U(0,1) values.


Performs the runs up test

Return

the test statistic

Parameters

rng

the thing that produces U(0,1) numbers, must not null

n

the number to sample