CodeSnip: Simple Array Shuffler
page 2 of 6
by Joseph Chahine
Feedback
Average Rating: 
Views (Total / Last 10 Days): 11380/ 100

Steps

The steps of shuffling are as follows:

1.      Create a new array with the same dimension of the original array to be shuffled.

2.      Select an item randomly from the original array and insert it in the new array.

3.      Repeat the previous step until all items of the original array are copied to the new array.

4.      Return the new array.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 11:33:32 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search