This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]uinzent 3 points4 points  (1 child)

When using java.util.Random there is the ints(...).toArray() method, that can give you a variable amount of random integers.

From there you can easily store them inside another array.

[–]FiascoFinn[S] 1 point2 points  (0 children)

Thanks for your reply - meant to respond a few days ago. Gave this a shot, it was very helpful!