What is affected by the RNG that Replay is so proud of?

Here’s an interesting little piece on computers generating random numbers - it even mentions online poker.

Basically, the RNG Replay employs - or any honest RNG governed by an algorithm - is by nature, not purely “random” as its ability to be random is only as good as the algorithm allows - and true randomness cannot be dictated by a computer program. The real term is “psuedo-random.” That’s where testing by a group like iTech comes in - if the algorithm they test does not show adequate “randmoness,” they’d see it. In Replay’s algorithm, they certify that is effective at being “random.”

5 Likes

It’s about as random as random can get. No complaints from me….

2 Likes

It tells you that a trustworthy external entity has reviewed the algorithm Replay uses for shuffling and have found it to be sufficiently random. Among other things, it tells you there’s no predictable pattern that could be exploited by an advantage player.

A distrusting person might claim there is no proof this algorithm is actually being used. Replay presented an auditing firm with their code, it was reviewed and certified. But it’s impossible to know for sure if they’re actually using it! If Replay made hand histories downloadable they could be mined for statistical anomalies, but alas we don’t have this. (I don’t think it’s rigged btw)

U Homers can suck tail pipe all u want … I have played 1 Million Hands and there is One thing for sure I enjoy the excitement of Replays Algorithm but I would NEVER Ever play for real money using this “Random” generator … and anyone that says they would is a total fool period :slight_smile:

2 Likes

Clearly it wasn’t just a Holiday Inn. It must have been a Holiday Inn Express

5 Likes

That was awesome :clap:t2: :joy::+1:t2:.

1 Like

Full disclosure - it was a Motel 6 - and not one of the fancy ones!

3 Likes

The main function of the pRNG (pseudoRandom Number Generator) is to create “shuffled” decks for each hand. A new deck is created for each hand at each table.

They basically start with an ordered, right out of the box virtual deck. A number is generated, and the computer uses this number to “cut” the deck at the specified location. The cut-to card is then removed and placed into the new deck.

This process is continued until all of the cards have been moved to the new deck.

They then deal from this deck, one at a time and off the top, for the duration of that hand.

The pRNG they use is very very close to random. I would guess they are using some variant of the Mersenne Twister, if you’re interested in looking into that.

4 Likes

The thing about an RNG vs an actual shuffled deck is in a real deck each card can only be in one specific order. Now, if the RNG guarantees that if a previous RN is generated, a new number is generated and assigned to that card before re-sorting the virtual deck then I would agree it is truly randomized before the deal.

What I mean is if there are two or more of the same random numbers assigned to cards before the sorting and dealing of the cards, I don’t think this is random.

MT uses sequences as long as 2^19,937, so 2 duplicate numbers is extreemly unlikely.

I don’t think that would matter much though. I don’t know how they do it, but I would generate a random integer between 1 and 52, move that card, then generate another number between 1-51, and so on.

If one were cutting a physical deck, one would expect to randomly cut 23 from the bottom, for example, twice in a row sometimes. I just don’t see how this invalidates the randomness.

2 Likes

Because in order to mirror a shuffled deck, every card has to have the same probability of being dealt 1st, 2nd, 3rd, 4th etc.

I’m fairly certain this methodology would result in multiple duplicate numbers being assigned in the deck.

Well, OK.

I don’t know exactly how they do anything. What I said about how they construct random decks was from what I remembered from a post years ago, where one of the devs explained it. The industry seems to agree that the way they do it here works.

Other than that, I don’t know what to say. :slight_smile:

3 Likes

I was a Mathematics major and studied and used industrial statistics most of my career.

The argument that duplicate numbers must be assigned sometimes is moot because actually no numbers are assigned to any particular cards. I have written randomization routines in some programs I created that work exactly like SunPowerGuru described in the previous post. Excel has a function to generate pseudo random numbers that is used to select a number from 1 to 52 in this case. Say is is 37. The 37th card from the top and becomes the first card in the shuffled deck, leaving 51 cards left, so the next random number is between 1 and 51 and that card becomes the second in the new deck. The process continues until all of the cards are in the shuffled deck.

The entire deck could be shuffled first or each card selected as it is dealt. I would make no difference in the randomness. I think I read the RP shuffles the deck at the beginning of the hand duplicating a hand shuffle.

2 Likes

Memory being what it is, I found the original post I referenced. This is from Gatzby, who was a dev here when he posted in Sep 2015, in the thread, “The Fairness Debate.”

2 Likes

That’s interesting but I think you should try doing it as described (using Excel or whatever you have available) and come back with how many duplicate numbers were assigned to specific cards or numbers (1 - 52) because as I posted previously each card has to have the same probability of being selected 1st, 2nd etc. in order to being considered random. But, when there are duplicate numbers assigned to different cards and sorted in ascending or descending order the cards order is no longer random.

My understanding of the Excel =RandBetween(1,52) function will assign a random number between 1 and 52 for each and every card and doesn’t decrease the max value by 1 each time applied.

Here you go. I just did it with 5 cards so that I could make a screenshot of the whole process that was a reasonable size. I got duplicate numbers a couple of times - 4 twice, 1 twice. There is a 1/5 chance of any card ending up in any given position in the final deck.

Right, it doesn’t. That’s part of the rest of the algorithm though - remove the card that was picked and then reduce the range for the next random number by 1.

  1. Put cards in a list, numbering them 1 to 52
  2. Generate a random number, N, from 1 to 52.
  3. Write down the card in position N in the original list into your shuffled list.
  4. Remove the card from position N from the original list. Now there are 51 cards left.
  5. Generate a random number, N, from 1 to 51.
  6. Write down the card in position N in the original list into your shuffled list.
  7. Remove the card from position N from the original list. Now there are 50 cards left.
  8. etc until all the cards are gone from the original list.

love2eattacos described exactly what I did but in an easier to understand format. It seems that smooth99 is confusing the random numbers with the numbers assigned to the shuffled deck. The random number is only used to select which card is selected to be first, second , third, etc. in the shuffled order. Once a card is selected as first, no other card can be first. The next random number selects the second card. This continues until the entire deck is shuffled.

So to clarify the randomness or not, would you be seeing the same cards appearing in the same order coming out on the flop, turn, river, regardless of who may have folded or how long between seeing them?
In other words is the deck set and remains set for the entire game or does the randomness cause it to change with each card that is being delt?
So you fold your 7 2 off and 3 7’s come up on the flop for quads. Did you really fold quads or it just did not matter?

@Wyner
The deck is shuffled before any cards are dealt. Dealer then deals the deck as normal, one card at a time, off the top of the deck. The individual card position within the deck does not change throughout the hand being played. Any action taken by the players has no effect on the deck and does not influence the flop, turn or river.

2 Likes