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 |