Description
Random() is used to return a random number between 0.0 and 1.0.
Call Signature
double Random ( )
Return Value
double
A random number between 0.0 and 1.0.
Remarks
The random number generation technique isbased on a paper in Simulation Modeling and Analysis, Law & Kelton. P449 is used. The calculation is seeded based on the date and time.
Example
Randomly select a pixel out of either channel 1 or channel 2 and place it in channel 3.
model
if( Random() > 0.5 )then
%3 = %2
else
%3 = %1
endif
endmodel
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.