FULLSCREEN CONTENTS Project Home Page
.FUNCTION....: #Random - Produce A Random Number
.ALIAS.......: #random
.CATEGORY....: functions 
.DISCUSSION..:
#RANDOM returns a random number between a lowerbound number and an upperbound number.

More precisely, it returns a number X, where:

That is:


RESTRICTIONS
======================================================


.EXAMPLE:

@echo off
:: a batch file to demonstrate generation of a
:: random number between 3 and 10, and putting
:: it into an environment variable named RAND

fdate /f#random /A10 /B3 /p"@set RAND=">junk.bat
call junk.bat
del  junk.bat

echo Random number is %RAND%
:: use the RAND environment varibale as you wish, here.

:: cleanup
set RAND=