Shuffle Demo

 

Enter the number of cards you want to shuffle, then push the Shuffle button.

Number of Cards:

This web form will validate your input, and if it's correct, will call the wsDice web service requestion a shuffle operation. The service will create an integer array of the correct size, then randomly assign the numbers from 1 to <numberOfCards> to the array and return it. This web form with then put the array into a dataset table which is bound to a datalist control, and the shuffle results will appear at the left.

The first click may take up to 40 seconds to complete as the service is activated. Subsequent calls should take less than a second.

Naturally, the items being shuffled don't have to be cards. It could be arranging shapes, it could be arranging questions to be printed on an exam -- the web service is the latest evolution of component software, and component software should avoid putting unrequired structure on information so the component can be used for many purposes.