Random state and random moves
Most WCA events are scrambled by random state (regulation 4b3): the program picks one of the positions of the puzzle, each with the same chance, and writes a sequence of moves that reaches it. The length of the scramble is the length of that sequence, so it can change from one scramble to the next.
5x5, 6x6, 7x7 and megaminx are scrambled with sufficiently many random moves instead (4b3e), so their scrambles always have the same length. Blindfolded events also turn the puzzle into a random orientation (4b3a).
Here, fifteen events are generated by cubing.js, the library behind js.cubing.net, and clock and megaminx by code of this site in the format of the WCA program. Everything runs in your browser.
Official scrambles and these ones
These scrambles cannot be used at an official WCA competition. Regulation 4b says competition scrambles must come from a current version of an official WCA scramble program, and the WCA scrambles page names one: TNoodle, version 1.2.3 at the time of writing.
The Delegate runs TNoodle on their own computer, should generate the scrambles for the whole competition beforehand, spares for extra attempts included, and protects them with a password. They must not look at the scrambles before the competition or regenerate them to get fairer ones, and each group only sees its own when it starts (regulations 4b+, 4b1 and 4b2). Every scramble on an official sheet comes with an image of the scrambled puzzle, and the scrambler checks the puzzle against it before signing (A2d1).
For practice, a club meetup or an unofficial competition, a list from this page works the same way: generate it once, number the attempts and use every scramble in order, without skipping the ones you do not like.