First of all, hey, Im a bit new to this board, and really needed help so thought it would be a good place to get some help.
Okay this is what i'm trying to do,
I want to create 50 random numbers assigned to different values, and tried using a do while loop for this.
E.g.
randomNumber1 = 34;
randomNumber2 = 43;
but without having to declare 50 numbers by hand, and rather have a loop to create it for me.
Here is the small bit of code for it that I wrote up:
However upon compiling it gives the error message " ; expected " on the "while (generateNum < 39) {" line.Code :int generateNum = 0; int currrentValue = 2; do { int randomNumber = (int)Math.round((Math.random() * 365) + 1); } while (generateNum < 49) { int randomNumber.currentValue = (int)Math.round((Math.random() * 365) + 1); currentValue++; generagteNum++; }
Anyone that can help me out of it?

