Selects random items from a provided list. By default selections may repeat; set unique to sample without replacement.
With unique true, count may not exceed the number of items. count defaults to 1. Uses a cryptographically-strong generator. Non-deterministic.
How many items to pick. Defaults to 1.
The list of items to choose from.
Sample without replacement (no repeats). Defaults to false.