rand

Synopsis

tset rand(tset)
tset rand(tset, int)

Description

The rand command returns a subset of its first argument (which can be a set or a relation). As the name of the built-in implies, the members of the subset are chosen at random. The second parameter can be used to specify the number of entities the returned set contains. The default value of the second parameter is 10 - this is the number of entities the returnes set will contain if the second parameter is omitted.