일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- Full text
- IBatis procedure
- 야구게임
- 추상클래스
- 전자정부
- Random
- while
- 스프링
- jquery
- 자바
- 형변환
- full text indexing
- 다형성
- 상속
- 가변인자
- 이클립스
- 25가지 효율적인 sql작성법
- 단축키
- Login with OAuth Authentication
- 다운캐스팅
- 전체
- 페이징
- 전체텍스트
- 로또
- 업캐스팅
- 자바 야구게임
- 상속예제
- angular2
- Validations
Archives
- Today
- Total
목록JAVA/21. Random (1)
nalaolla
Random 객체
package test.com; import java.util.Random; public class Test01Random { public static void main(String[] args) { System.out.println("Random..."); System.out.println(Math.random()); //난수발생 Random ran = new Random(); System.out.println(ran.nextInt(45+1)); System.out.println(ran.nextDouble()); System.out.println(ran.nextBoolean()); } }============================================랜덤객체는 Math.random과 Ra..
JAVA/21. Random
2015. 12. 1. 21:57