Choosing random numbers in a range all at least once

My god, why didn’t I think of this. Thanks a lot!