How to create a list of random numbers? : <p>So I am trying to create a method in which random numbers between 1000 and -1000 are declared and stored in an arraylist. The issue is, I need to use a user inputted number to determine how many random numbers I need. Therefore, I assume I need some sort of loop which will create a random number(within the given boundaries) for the given amount of times the user desires. To make things clear, if the user inputted the number 10, than 10 random numbers would be created and stored in the arraylist.</p>

<p>For this example, the user inputted data is gathered from a jtextField called n2sInput.</p>

<p>If anyone could explain, or create a sample code of how to do this, I would greatly appreciate it!</p>

<p>Thanks</p>
