티스토리 뷰
package coupon;
import java.util.Random;
public class Coupon {
public static void main(String[] args) {
int couponSize = 1000;
final char[] possibleCharacters =
{'1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'A', 'B', 'C', 'D', 'E', 'F',
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
'V', 'W', 'X', 'Y', 'Z'};
final int possibleCharacterCount = possibleCharacters.length;
String[] arr = new String[couponSize];
Random rnd = new Random();
int currentIndex = 0;
int i = 0;
while (currentIndex < couponSize) {
StringBuffer buf = new StringBuffer(16);
for (i= 16; i > 0; i--) {
buf.append(possibleCharacters[rnd.nextInt(possibleCharacterCount)]);
}
String password = buf.toString();
System.out.println("password==>"+password);
arr[currentIndex] = password;
currentIndex++;
}
}
}
- Total
- Today
- Yesterday
- ie6과 ie7 같이 사용하기 multi ie
- CSS
- log4j
- 한글유니코드
- tomcat
- 커플링
- MySQL
- 자블라니
- java 엑셀
- TinyMCE
- 김치송
- ERwin
- wii wi-fi 51330
- 기아짤방
- eclipse plugin
- erwin Schema Generation 시 필드 순서
- 구글수표
- oracle
- Java
- JEUS
- 간식송
- Ant
- svn
- 이미지리사이즈
- 연도
- trac
- imagemagick
- jQuery
- 아디다시
- 공인구
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |