VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

How to shuffle a deck of cards efficiently

Ray St.Denis  (1 Submission)   Miscellaneous   Intermediate   Wed 3rd February 2021

This example is to show how to shuffle a deck of cards using an extremely fast algorithm that does not have to check if a card has already been chosen. What this means is that the code is very fast making it very scalable as well. Although the example uses a deck of cards, it could just as easily be used to shuffle any series of objects with thousands of items.

Inputs
Unshuffled deck of cards

Returns
Shuffled deck of cards

Rate How to shuffle a deck of cards efficiently (2(2 Vote))

Download How to shuffle a deck of cards efficiently

How to shuffle a deck of cards efficiently Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters