Without testing and warranty, but basically this should work:
Create two one-dimensional arrays and a variable 'myrandom'. Fill the first one with the numbers 1 to 10. On button click get one number from the first array with
set myrandom to floor(random(array1.Width))
array2.Push front array1.at(myrandom)
Do this until array1.Width = 1. Then the first array contains one number and array2 the other nine.