"파이썬 random()"의 두 판 사이의 차이

6번째 줄: 6번째 줄:


<source lang='Python'>
<source lang='Python'>
print( random() )
print( random() )
# 0.37444887175646646
# 0.37444887175646646

2020년 2월 1일 (토) 02:26 판

1 개요

Python random()
파이썬 random()
  • 0 이상, 1 미만의 랜덤 실수(float)를 반환하는 파이썬 함수
  • [math]\displaystyle{ 0.0 ≤ x \lt 1.0 }[/math]
print( random() )
# 0.37444887175646646

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}