777
777
  • Threads: 37
  • Posts: 734
Joined: Oct 7, 2015
October 7th, 2015 at 12:01:53 PM permalink
I'm working on a card shuffle algorithm using Fisher–Yates methods and a TBD random number generator method. Is there an industry or regulatory standard that one must follow regarding the card shuffling and random number?
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 6013
Joined: Jul 23, 2014
October 7th, 2015 at 12:10:08 PM permalink
Start with the GLI standards.
May the cards fall in your favor.
teliot
teliot
  • Threads: 43
  • Posts: 2871
Joined: Oct 19, 2009
October 7th, 2015 at 1:55:42 PM permalink
Quote: 777

I'm working on a card shuffle algorithm using Fisher–Yates methods and a TBD random number generator method. Is there an industry or regulatory standard that one must follow regarding the card shuffling and random number?

For the RNG, it is enough to use any that passes the Diehard tests. For shuffling you have to prove that every final position is equally likely after the shuffle (or that every remaining card is equally likely to be dealt, depending on what you are doing). FY is as good as it gets.

If you are creating a virtual game (like VP or online version) that's all you need. If you are talking about something like the Ace/King/2-to-6 shufflers, a shuffle of a physical deck, that's a whole different story.
Climate Casino: https://climatecasino.net/climate-casino/
777
777
  • Threads: 37
  • Posts: 734
Joined: Oct 7, 2015
October 20th, 2015 at 11:44:52 AM permalink
Quote: teliot

For the RNG, it is enough to use any that passes the Diehard tests. For shuffling you have to prove that every final position is equally likely after the shuffle (or that every remaining card is equally likely to be dealt, depending on what you are doing). FY is as good as it gets.

If you are creating a virtual game (like VP or online version) that's all you need. If you are talking about something like the Ace/King/2-to-6 shufflers, a shuffle of a physical deck, that's a whole different story.



I'll use the Mersenne Twister for PRNG (it passes the Diehard tests) for applications in physical shuffling machine, and game and simulation. Is Mersenne Twister commonly used by developers and accepted by regulatory agencies?
MathExtremist
MathExtremist
  • Threads: 88
  • Posts: 6526
Joined: Aug 31, 2010
October 21st, 2015 at 1:46:48 PM permalink
For production code? I'm pretty sure it has already been approved. But call/email GLI or BMM and ask.

For my own internal simulation stuff, that's all I use.
"In my own case, when it seemed to me after a long illness that death was close at hand, I found no little solace in playing constantly at dice." -- Girolamo Cardano, 1563
  • Jump to: