RandomSample

Syntax

RandomSample(Filename)
RandomSample(Filename, Seed)

Description

Choose a random value from the list of values in the text file.  The format for the file is one number per line.  If you want the same sequence for two or more branches or scenarios, you can use the optional "Seed" parameter. Using the same seed in two different functions will yield the same sequence.  Note: The seed value is not the first value in the sequence.

Example

RandomSample(Observations.txt) = List of values randomly chosen from those in Observations.txt.