random.walk.tests(x, B = 64, Excursion = TRUE, Expansion = TRUE, Height = TRUE, alpha = 0.05)
TRUE, Random Walk Excursion test is applied.
TRUE, Random Walk Expansion test is applied.
TRUE, Random Walk Height test is applied.
xshould be entered as a matrix of bits of dimension $B$x$k$, where $k$ is the number of words (integers) generated by the RNG of interest.
Excursion is TRUE, B takes the values 16, 32, 64, 128, and 256. If
Height is TRUE, B takes 64, 128, 256, 512, and 1024. If
Expansion is TRUE, B takes 32, 64, and 128. Because theoretical cumulative distribution functions for the other word lengths,
random.walk.tests() performs tests under given bit settings. If one of the tests is not applied, all the results related with that test in output are set to -1.
RNGkind(kind = "Super-Duper") B=64 # Bit length is 64. k=500 # Generate 500 integers. dat=round(runif(k,0,(2^B-1))) x=sfsmisc::digitsBase(dat, base= 2, B) #Convert to base 2 alpha = 0.05 test=random.walk.tests(x, B, Excursion = TRUE, Expansion = TRUE, Height = TRUE, alpha) print(test)
Run the code above in your browser using DataCamp Workspace