1. get a unique random number from like 1-10
Random(10)+1 will return a number from 1 to 10.
2. create an array unique radom sort
Do you mean a random value for each cell of the array that's unique too? Maybe it's me, but I can't quite tell what you mean.
You can loop through each element of the array and set the current cell to random(x). If you don't want to add numbers to the array that already exist in the array (since you said "unique"), things get a little more complicated.
I sometimes use a method where I take advantage of the "Check if key exists" condition of the Hash table object in that context, but it would be tedious to explain. Maybe better suited for an example.
Still maybe you could clarify first what you actually wanted. And welcome to the forums btw!