If you're looking to use it for randomization purposes, you can't use choose() for a variable set of numbers. You would want to use floor(random(0,ChosenNumber).
For all other purposes, use a counter or reverse counter in a loop, where the number of repetitions is your chosen number. If you really need to, you can take the additional step of pushing each consecutive number to an array, although this should be necessary.