I have some code that generates numbers, and I wish to add them to some kind of list, I did research and an array seems to be close to what I want, but I can't find how to add a generated variable to it.
Or is there some other kind of list, or something that would allow me to add variables at any time and print off the whole list at the end?
thanks.