Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Free to read · Published 30 July 2012

Testing Randomness: Poker Test with Hands of Three Numbers

Wael Mohamed Fawaz Abdel-Rehim1, Ismail Amr Ismail2 & Ehab Morsy1

Journal of Computer Science, Volume 8, Issue 8, pp. 1353–1357 · doi.org/10.3844/jcssp.2012.1353.1357

9,752 accesses17,787 downloads5 citations (Crossref)Metrics
Cite Check for updates

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.

Licence and reuse

Free to read. This article carries the publisher’s copyright, as printed on it: © 2012 Science Publications. It is free to read; ask us before reusing it.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

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

Licence
© Science Publications
Issue
Volume 8, Issue 8
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Testing Randomness: Poker Test with Hands of Three NumbersJournal of Computer Science · Volume 8, Issue 8 · pp. 1353–1357 · © Science PublicationsDownload