I think part of your confusion about the use and placement of the braces comes from the lack of indentation in your code. The main() method should be indented 1 level, the body of main() another level, and the body of the for-loop yet another. Clean that up and it may be clearer.
Note that an indentation level should be represented by 4 space characters.
Not quite. As Carey suggests, arithmetic with Math.random() isn't a good idea; it is very error‑prone. And as he suggested, you can use a method of the Random object to get exactly the number you want in the range you want.