Generate one or more random integers between a minimum and maximum value, with optional uniqueness and sorting.