Research Article Open Access

Testing Randomness: Poker Test with Hands of Three Numbers

Wael Mohamed Fawaz Abdel-Rehim1, Ismail Amr Ismail2 and Ehab Morsy1
  • 1 Suez Canal University, Egypt
  • 2 Misr International University, Egypt

Abstract

Problem statement: The problem of testing randomness is motivated by the need to evaluate of the quality of different random number generators used by many practical applications including computer simulations, cryptography and communications industry. In particular, the quality of the randomness of the generated numbers affects the quality of such applications. In this study we focus on one of the most popular approaches for testing randomness, Poker test. Two versions of Poker test are known: the classical Poker test and the approximated Poker test, where the latter has been motivated by the difficulties involved in implementing the classical approach at the time it is designed. Approach: Given a sequence of n random numbers to be tested, the basic Poker approach divides this sequence into groups of k = 5 numbers, observes which of the possible patterns is matched by each quintuple, computes the occurring probability of each of these patterns and finally applies Chi-square test to check the randomness of such sequence. Results: For the sake of efficiency of the test, it is shownin the literature that, the value of k should be bounded from above based on the number of random numbers n to be tested On the other hand, most practical applications apply poker test with different values of k in order to ensure that the underlying sequence is truly random. This motivates implementing Poker approach with hands of three numbers in this study. Conclusion: We discuss the Poker test with hands of three numbers optimized for testing the randomness of sequences of sufficiently small sizes. From the computations point of view, we compare the performance of implementing Poker approach that uses hands of three, four, and five numbers and show that the running time of implementing the hands of three numbers is close to that hands of four numbers and is significantly less than that hands of five numbers.

Journal of Computer Science
Volume 8 No. 8, 2012, 1353-1357

DOI: https://doi.org/10.3844/jcssp.2012.1353.1357

Submitted On: 22 June 2012 Published On: 30 July 2012

How to Cite: Abdel-Rehim, W. M. F., Ismail, I. A. & Morsy, E. (2012). Testing Randomness: Poker Test with Hands of Three Numbers. Journal of Computer Science, 8(8), 1353-1357. https://doi.org/10.3844/jcssp.2012.1353.1357

  • 4,589 Views
  • 13,589 Downloads
  • 3 Citations

Download

Keywords

  • Random numbers tests
  • cryptography
  • secret keys
  • poker test
  • approximated poker test