Try the seq command
seq
cmd=( $(seq 1 1000) )
If you are running bash you may take advantage of its features.
Try:
cmd=({1..1000})
You can say:
cmd=( $(seq 1000) )
in order to create the array.