RandVars

RandVars[ n ]

RandVars[ n ] returns a list of n different single-letter variables. If n is 1, a single variable is returned rather than a singleton list. Certain variable names like “v”, “q”, “o” and “i” are never chosen because they look very similar to other mathematical symbols and might confuse students.

Example in out
A single random variable. RandVars[1] s
A list of 3 random variables. RandVars[3] {x, a, t}
Options

Exclude

Exclude excludes variables var1 and var2 from being chosen.

Syntax Example
RandVars[n, Exclude=>{var1, var2}] RandVars[3, Exclude=>{x, t}]