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

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-2024 ASPAlliance.com  |  Page Processed at 2024-04-26 8:23:06 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search