Create two arrays 10 elements each. One empty (dest), and one with 10 numbers (source).
Get a random number from 1 to 10 and grab the associated number from source, and place it in dest in element 1. Then remove that number from source by shifting all larger numbers down one row.
Now grab a random number from 1 to 9 and put it in dest (2), 1 through 8 into dest(3) and so on until you get to one remaining number, and place it in the final element of dest.
After you've used all the numbers, you can then populate your buttons.
Make sense?
-Dave Summers-
Even more Fox stuff at:
Get a random number from 1 to 10 and grab the associated number from source, and place it in dest in element 1. Then remove that number from source by shifting all larger numbers down one row.
Now grab a random number from 1 to 9 and put it in dest (2), 1 through 8 into dest(3) and so on until you get to one remaining number, and place it in the final element of dest.
After you've used all the numbers, you can then populate your buttons.
Make sense?
-Dave Summers-
Even more Fox stuff at: