This command generates a single random subset among the 2n possible subsets.
The output is an array of zero and one values where zero for the ith element of the set indicates the element is not present and a value of one indicates the ith element is present. For example, if n = 5 an output array of
specifies that elements 1, 4, and 5 are present while elements 2 and 3 are not.
where <n> is a number or parameter that specifies the size of the set;
and <y> is a variable where the random subset is saved.
LET Y1 = RANDOM SUBSET FOR I = 1 1 N
The SEED command can be used to specify a seed for the random number generator.
LET N = 10 LET Y = RANDOM SUBSET FOR I = 1 1 N PRINT Y
Date created: 1/12/2009