Math.random() - 0.0과 1.0사이의 임의의 double값을 반환
0.0 <= Math.random() < 1.0 //0.0 ~ 0.999999...
/*
만일 1~3의 범위를 갖고 싶다면 다음과 같은 단계를 거쳐야 한다.
1. 각 변에 3을 곱한다.
0.0 * 3 <= Math.random() * 3 < 1.0 * 3
ㄴ0.0 <= Math.random() * 3 < 3.0
2. 각 변을 int형으로 변환한다.
(int)0.0 <= (int)(Math.random() * 3) < (int)3.0
ㄴ0 <= (int)(Math.random() * 3) < 3
3. 각 변에 1을 더한다.
0 + 1 <= (int)(Math.random() * 3) + 1 < 3 + 1
ㄴ1 <= (int)(Math.random() * 3) + 1 < 4