01. Math.random
Math.random()
- 0-1 사이의 난수 값을 반환합니다.
번호 | 기본값 | 메서드 | 리턴값 | 클릭 |
---|---|---|---|---|
1 | 0~1(난수) | Math.random() | ||
2 | 0~9(정수) | Math.random() | ||
3 | 1~100(정수) | Math.random() |
번호 | 기본값 | 메서드 | 리턴값 | 클릭 |
---|---|---|---|---|
1 | 0~1(난수) | Math.random() | ||
2 | 0~9(정수) | Math.random() | ||
3 | 1~100(정수) | Math.random() |