Did you know that in windows the environment variable %RANDOM% is expanded to a random number between 1 and 32,767..?
Handy.