Search notes:

cmd.exe: The %random% (pseudo-) variable

The pseudo (or dynamic) variable %random% evaluates to an integer between 0 and 32767, inclusively.

Index