일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- jquery
- 상속
- 상속예제
- Login with OAuth Authentication
- 전체텍스트
- 자바
- 추상클래스
- 페이징
- 전자정부
- Validations
- 다형성
- angular2
- full text indexing
- 업캐스팅
- 스프링
- 25가지 효율적인 sql작성법
- 다운캐스팅
- 로또
- 이클립스
- 야구게임
- while
- 형변환
- 단축키
- Full text
- Random
- 가변인자
- IBatis procedure
- 전체
- 자바 야구게임
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