not a clue when where or how, i assumed it was in all systems, type: set /? in cmd.exe and on the last "page" of info it says about %rand%
i'm on XP, not sure if it's on all systems