Click here to Skip to main content
16,014,860 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralClient Authentication & my feeble mind Pin
FlatTopPete9-Jun-05 4:35
professionalFlatTopPete9-Jun-05 4:35 
GeneralRe: Client Authentication & my feeble mind Pin
Dave Kreskowiak9-Jun-05 6:20
mveDave Kreskowiak9-Jun-05 6:20 
GeneralRe: Client Authentication & my feeble mind Pin
KoalaCowboy9-Jun-05 6:42
KoalaCowboy9-Jun-05 6:42 
GeneralRe: Client Authentication & my feeble mind Pin
Dave Kreskowiak9-Jun-05 7:13
mveDave Kreskowiak9-Jun-05 7:13 
QuestionSubclassed Control with embedded Windows Form? Pin
Dave Goerlich9-Jun-05 3:13
Dave Goerlich9-Jun-05 3:13 
GeneralRandom Numbers Pin
ADY0079-Jun-05 0:00
ADY0079-Jun-05 0:00 
GeneralRe: Random Numbers Pin
Christian Graus9-Jun-05 0:40
protectorChristian Graus9-Jun-05 0:40 
GeneralRe: Random Numbers Pin
Dave Kreskowiak9-Jun-05 5:47
mveDave Kreskowiak9-Jun-05 5:47 
Christian is correct about making an array of all of your cards, then suffling them. But, there's another method of shuffling that doesn't involve swapping cards. This alternate method is used by the secured shufflers in just about every internet poker site that's honest.

What you'll do is create an array of cards, just like Christian described. Then pick a random card in the deck (1 to 52), remove it from the deck and add it to the top of a new deck, or second array. Now, pick another random card (1 to 51), remove it and add it to the top of the new deck, and so on until you've exhausted the source deck.

You can read more about this research, and why card swapping and a 32-bit RNG can only generate about 4 billion or so decks (assuming 52 cards) out of the possible 8.0658175170943878571660636856404e+67 decks, by Googling for "How we learned to cheat internet poker".


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Random Numbers Pin
Christian Graus9-Jun-05 12:37
protectorChristian Graus9-Jun-05 12:37 
GeneralRe: Random Numbers Pin
Dave Kreskowiak9-Jun-05 14:17
mveDave Kreskowiak9-Jun-05 14:17 
GeneralRe: Random Numbers Pin
Christian Graus9-Jun-05 14:26
protectorChristian Graus9-Jun-05 14:26 
GeneralRe: Random Numbers Pin
Dave Kreskowiak9-Jun-05 16:05
mveDave Kreskowiak9-Jun-05 16:05 
GeneralUrgent javascript help! Pin
Dot Net8-Jun-05 23:41
Dot Net8-Jun-05 23:41 
GeneralRe: Urgent javascript help! Pin
Rizwan Bashir9-Jun-05 0:56
Rizwan Bashir9-Jun-05 0:56 
GeneralRe: Urgent javascript help! Pin
Dot Net9-Jun-05 1:11
Dot Net9-Jun-05 1:11 
GeneralRe: Urgent javascript help! Pin
Rizwan Bashir9-Jun-05 1:34
Rizwan Bashir9-Jun-05 1:34 
GeneralRe: Urgent javascript help! Pin
Dave Kreskowiak9-Jun-05 5:36
mveDave Kreskowiak9-Jun-05 5:36 
GeneralRe: Urgent javascript help! Pin
Dot Net10-Jun-05 6:32
Dot Net10-Jun-05 6:32 
GeneralRe: Urgent javascript help! Pin
Dave Kreskowiak10-Jun-05 15:52
mveDave Kreskowiak10-Jun-05 15:52 
GeneralConnecting to pastel Pin
Member 20223418-Jun-05 23:20
Member 20223418-Jun-05 23:20 
GeneralRe: Connecting to pastel Pin
Christian Graus9-Jun-05 0:43
protectorChristian Graus9-Jun-05 0:43 
GeneralRe: Connecting to pastel Pin
Dave Kreskowiak9-Jun-05 5:14
mveDave Kreskowiak9-Jun-05 5:14 
GeneralRe: Connecting to pastel Pin
toxcct9-Jun-05 5:32
toxcct9-Jun-05 5:32 
GeneralVB.NET Controls Pin
meetaqadir8-Jun-05 22:54
meetaqadir8-Jun-05 22:54 
GeneralRe: VB.NET Controls Pin
Christian Graus9-Jun-05 0:44
protectorChristian Graus9-Jun-05 0:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.