I\'d like to create a random list of integers for testing purposes. The distribution of the numbers is not important. The only thing that is counting is time
Your question about performance is moot—both functions are very fast. The speed of your code will be determined by what you do with the random numbers.
However it's important you understand the difference in behaviour of those two functions. One does random sampling with replacement, the other does random sampling without replacement.