GRSELECT
GRSELECT(n; v; r) forms a variate of size n by sampling from a population defined as NEXPAND(r; v); if r is omitted, the population contains just one of each element of v; if v is omitted, sampling is from a variate containing the integers 1...n.