Randomly selects the specified number of documents from its input.

See usage.