/* rand example: select a card */
int main ()
/* initialize random seed: */
srand ( time(NULL) );
/* generate card number: */
iCard = rand() % 52;
There you go a randomish card from 52 in C++
Want it more random?
Run it 52 times, decreasing the choice by one each time, to pre-randomize the order.
Then run it again to select a card from that randomized set of cards.
More Random?? And Unique to the table? Use the ascii codes of the players names, combined with the time and radioactivity count to 'seed' the generator.
Originally Posted by sylpoker1
I don't really try to understand the RNG too much,but some people at the table say that the rabbit changes the outcome of hand.I see them say, well if you did not rabbit, then the hand would have probably ended different.I think this is sort of ridiculous though.
Any site that uses the continuous shuffling method (eg Fulltilt) you do effect the outcome by taking longer to decide or even choosing to play the hand or not.
Of course it doesn't help as you still don't know what the effect of your interference will be.
But it does mean that people who say they would have won that hand are wrong, because if they had played, then the flop turn and river cards would have been different.
Rabbiting only makes sense if the preshuffle method is used, so the current hand wont change. (But it will change the next hand in some random way).
Because the offset from the RNG seed will have moved on.