Frequency Test | For each random number r, 0 <= r <= d, count the number of times that r occurs and conducts a Chi-square goodness-of-fit test. d is now chosen as 2n (n is the number of bits for the generator, maximum 24 bits). The function returns a uniform random no. in [0,1]. The test is failed if the value less than 0.001 or larger than 0.999. |