General question:

Currently trying to write a comman line program that accepts the number of times to roll die in a linked list data structure. I am ok with the linked list structure but am unsure how to make it work without a predetermined amount. (i.e. I can do x y and 3 points of each but not sure how to write a random user input)

Any help of how to get started would be greatly appreciated.