티스토리 뷰
RandomState는 다양한 확률 분포에서 추출한 난수를 생성하는 여러 가지 방법을 제공
1
2
3
4
5
6
7
|
import numpy as np
from datetime import datetime
random_number = np.random.RandomState(datetime.now().microsecond)
print("datetime.now().microsecond",datetime.now().microsecond) #datetime.now().microsecond 600700
print(random_number) #RandomState(MT19937)
|
cs |
'Programming > python' 카테고리의 다른 글
python datetime library (0) | 2019.09.11 |
---|---|
python으로 구현한 fft와 librosa library (1) | 2019.09.11 |
pandas 데이터 전처리하는 방법 (0) | 2019.09.09 |
[5] python pandas 파일 정리 mission (0) | 2019.09.08 |
python - BeautifulSoup, re (0) | 2019.09.06 |
댓글