Find the random number generator function for your programming language. This function may or may not require a "seed" number to start the random number generation process. You may have to add code for a random number generator function.
Choose a seed value, if required, and enter it in the appropriate argument location for the function call. You may have to specify the seed number in a separate function. For some random number functions, there is a default seed number or a default method for generating a seed number.
Call the random number generator function N times using a loop if N is large. If you chose a set seed number (like five or six) in Step 2, then you may get the same sequence of N numbers each time you run the program (this depends on the characteristics of the generator and any other parameters that may be involved). If the seed number is distinct each time the program runs, you will get a distinct sequence.
Check at least a portion of the sequence to be sure you chose a good seed number. If you know how the random number generator works and are sure of a good seed number choice, you may not need to do this step.