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

2번째 줄: 2번째 줄:
;Python random()
;Python random()
;파이썬 random()
;파이썬 random()
;파이썬 random.random()
* 0 이상, 1 미만의 랜덤 실수(float)를 반환하는 파이썬 함수
* 0 이상, 1 미만의 랜덤 실수(float)를 반환하는 파이썬 함수
* <math> 0.0 ≤ x < 1.0</math>
* <math> 0.0 ≤ x < 1.0</math>

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

1 개요

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

2 같이 보기

3 참고

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