Hello, is it possible to randomly generate a 10 digit number that will only contain a specified set of numbers.

For example, randomly generate a 10 digit number that only contains the digits 1,2,7,8,9
Results:

1789127981
9781277819
9981227178
9977127897