if no duplicates occur, then it's not "random" anymore.
if you want to have a sequence of numbers that "look random", but without duplicates, then you can use the System.getCurrentTimeMillis() function. (always wait for a random number of milliseconds before getting the next number in sequence). Then you can cut off the highest digits and shuffle them if needed.
Otherwise, to sort out the duplicates in an array that already contains random generated numbers, you have to compare the last number in array against all the others and delete if it already exists, then the second last against all the others and so on. (like bubble sort).
or you use a Binary Tree for better performance: put the first in, then the second if the second is not already inside, then the third if it is not already inside and so on.