Dashboard
/
Python
/
basic
/
random 모듈
Search
random 모듈
•
random.random()
0이상 1미만의 실수 난수 생성
•
random.randint(
start, stop
)
start 이상 stop 이하
의 정수 난수 생성
•
randrange(
low, high, step
)
low 이상 high 이하
범위에서
step
만큼의 간격으로 정수 난수 생성
•