Script to choose n samples from a list of any length