820 KAR 1:050, Section 8
Random Number Generator Requirements
(1) A random number generator shall reside on a program storage device secured in the logic board of the system. The numbers selected by the random number generator for each drawing shall be stored in the system's memory and be capable of being output to produce a winning number. The use of an RNG results in the selection of raffle outcomes in which the selection shall:
(a) Be statistically independent;
(b) Conform to the desired random distribution;
(c) Pass industry-standard recognized statistical tests, as chosen by the independent testing laboratory; and
(d) Be unpredictable.
(2) Applied Tests. The test laboratory may employ the use of various recognized tests to determine whether or not the random values produced by the random number generator pass the desired confidence level of ninety-nine (99) percent. The independent test lab shall choose the appropriate tests on a case by case basis depending on the RNG under review. These tests may include:
(a) Chi-square test;
(b) Equi-distribution (frequency) test;
(c) Gap test;
(d) Overlaps test;
(e) Poker test;
(f) Coupon collector's test;
(g) Permutation test;
(h) Kolmogorov-Smimov test;
(i) Adjacency criterion tests;
(j) Order statistic test;
(k) Runs tests (patterns of occurrences shall not be recurrent);
(l) Interplay correlation test;
(m) Serial correlation test potency and degree of serial correlation (outcomes shall be independent of the previous game);
(n) Tests on subsequences; and
(o) Poisson distribution.
(3) Period. The period of the RNG, in conjunction with the methods of implementing the RNG outcomes, shall be sufficiently large to ensure that all valid, sold numbers are available for random selection.
(4) Range. The range of raw values produced by the RNG shall be sufficiently large to provide adequate precision and flexibility when scaling and mapping.
(5) Background RNG Cycling or Activity Requirement. To ensure that RNG outcomes cannot be predicted, adequate background cycling or activity shall be implemented between each drawing at a speed that cannot be timed. The rate of background cycling or activity shall be sufficiently random in and of itself to prevent prediction.
(6) RNG Seeding or Re-Seeding. The methods of seeding or re-seeding implemented in the RNG shall ensure that all seed values are determined securely and that the resultant sequence of outcomes is not predictable.
(a) The first seed shall be randomly determined by an uncontrolled event. After every bearer ticket draw, there shall be a random change in the RNG process (new seed, random timer, or delay, ). This shall verify the RNG does not start at the same value, every time. It is permissible not to use a random seed, except the manufacturer shall ensure that the selection process will not synchronize.
(b) Unless proven to have no adverse effect on the randomness of the RNG outcomes or actually improve the randomness of the RNG outcomes, seeding and re-seeding shall be kept to an absolute minimum. If the background cycling or activity of the RNG is interrupted, the next seed value for the RNG shall be a function of the value produced by the RNG immediately prior to the interruption.
(7) Scaling Algorithms. The methods of scaling ( converting raw RNG outcomes of a greater range into scaled RNG outcomes of a lesser range) shall be linear, and shall not introduce any bias, pattern, or predictability. The scaled RNG outcomes shall be proven to pass various recognized statistical tests as chosen by the independent testing laboratory.
(a) If a random number with a range shorter than that provided by the RNG is required for some purpose within the raffle system, the method of re-scaling, ( converting the number to the lower range), shall be designed in a way that all numbers within the lower range are equally probable.
(b) If a particular random number selected is outside the range of equal distribution of rescaling values, it is permissible to discard that random number and select the next in sequence for the purpose of re-scaling.
(8) Winning Number Draw. The winning number selection shall only be produced from sold bearer ticket numbers from the current drawing to be available for selection.
(a) Each valid, sold raffle number shall be available for random selection at the initiation of each drawing; and
(b) For raffles that offer multiple awards or drawings with separate buy-ins for each, the winning number selection shall only be produced from sold bearer ticket numbers corresponding with each applicable award or drawing. As winning numbers are drawn, they shall be immediately used as governed by the rules of the raffle ( the bearer tickets shall not be discarded due to adaptive behavior).
(9) No Corruption from Associated Equipment. An electronic raffle system shall use appropriate protocols to protect the random number generator and random selection process from influence by associated equipment, which may be communicating with the electronic raffle system.