VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A cool card shuffling routine 'without using condition statements'

Nithin Pradeep  (1 Submission)   Games   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Hi friends. This is a good card shuffling routine.
Basically, what it does is it takes an aray containing the numbers form 1 to 52 and shuffles the array. This can be used for any purpose including shuffling cards.

Inputs
An array which containd the numbers form 1 to 52 in that order

Assumes
This code works by choosing a random number between 1 & 52 and assigning it to an element of the array. Then it chooses another random number and assigns it to the next element. The code is pretty self explanatory. If you have some doubt, just mail me.

Returns
The same array with the order of the numbers shuffled

Rate A cool card shuffling routine 'without using condition statements' (7(7 Vote))
A cool card shuffling routine 'without using condition statements'.bas

A cool card shuffling routine 'without using condition statements' Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters