Generate cryptographically secure random integers in a custom range, with options for uniqueness and sorting.