Arbortext IsoDraw > Macro Language Reference > Functions and Data Types > Functions > Random Function
  
Random Function
The rand() function will return a random number between 0 and the given argument.
The random generator must be initialized with the command randomize. With no parameter given the current time initiates the function; with a parameter given for a repeatable randomized sequence.
MACRO modernArt
DEFINE i AS integer
RANDOMIZE
FOR i=0 to 100
CREATE LINE rand(600) rand(420) rand(600) rand(420)
END FOR
END MACRO