f = random S
f = random(d,S)
Provides a random element of a (finite dimensional) PolySpace or DualSpace (of the given degree/order d).