I wanna generate list of random numbers, and I want to get the length of that list from the user. So I write the code like below:

```
randNum = input()
randList = random.sample(range(0,10000), randNum)

```

I know this is wrong, but this is what I want to build.
Can you help me with this?