from random import *
# 0,0 ~ 1.0 미만의 임의의 값 생성
print(random())
# 0.0 ~ 10.0 미만의 임의의 값 생성
print(random() * 10)
int()
정수로 출력하기
# 0 ~ 10 미만의 임의의 값 생성
print(int(random() * 10))
# 1 ~ 10 이하의 임의의 값 생성
print(int(random() * 10) + 1)
ranrange()
# 1 ~ 45 미만의 임의의 값 생성 (끝에 숫자 미포함)
print(randrange(1, 45))
raindint()
# 1 ~ 45 이하의 임의의 값 생성 (끝에 숫자 포함)
print(randint(1, 45))
-나도코딩을 보고 공부함-