일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- js api
- 김영한 JPA
- REST API
- 프로그래머스 SQL
- 이펙티브자바 스터디
- 집 구하기
- js promise
- java
- 킹수빈닷컴
- 백준
- 이펙티브자바 아이템60
- 모던자바스크립트
- http
- 이펙티브자바
- 김영한 http
- JS 딥다이브
- js array
- 드림코딩
- Spring Security
- Quick Sort
- JPA 연관관계 매핑
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- 백기선 스터디
- dreamcoding
- 패스트캠퍼스 컴퓨터공학 완주반
- HTTP 완벽가이드
- 이펙티브자바 아이템59
- BOJ
- 프로그래머스
- HTTP 완벽 가이드
- Today
- 1
- Total
- 17,173
목록이펙티브자바 아이템59 (2)
kingsubin
랜덤값을 구해오는 라이브러리 java.util.Random: nextInt() % bound; java1.0 java.util.Random: nextInt(int bount); java1.2 java.util.concurrent.ThreadLocalRandom java1.7 java.util.SplittableRandom java1.8 java.security.SecureRandom java1.1 // 59-1. Random.nextInt() % bound 방식의 문제점 public class Item59 { static Random random = new Random(); static int random(int n) { return Math.abs(random.nextInt()) % n; } publi..
랜덤값을 구해오는 라이브러리 java.util.Random: nextInt() % bound; java1.0 java.util.Random: nextInt(int bount); java1.2 java.util.concurrent.ThreadLocalRandom java1.7 java.util.SplittableRandom java1.8 java.security.SecureRandom java1.1 // 59-1. Random.nextInt() % bound 방식의 문제점 public class Item59 { static Random random = new Random(); static int random(int n) { return Math.abs(random.nextInt()) % n; } publi..