Dear community,

It is my first time using STAT and I am stuck with an assignment.
It says: "In Stata, you can use the function “runiform()” to randomize the selection process. Please set a seed using “set seed #” to obtain the same random numbers, which makes the subsequent results reproducible. The following lines demonstrate how this can be done:
set seed x
generate random = runiform()
Note that x in the first line above is any positive integer (between 0 and 231−1).
Using an appropriate filter on the newly created variable “random” choose your 1000 random observations."

My question:
How do I set the filter for the newly created variable so that I get only 1000 observations?

Thank you for your help