티스토리 뷰

Programming/python

numpy.random.RandomState

RosyPark 2019. 9. 10. 10:57

 

 

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
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG more
«   2025/02   »
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
글 보관함