반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Excel
- PostgreSQL
- c#
- Google Spreadsheet
- Kotlin
- numpy
- gas
- string
- SQL
- hive
- Github
- 파이썬
- Presto
- list
- PySpark
- Google Excel
- GIT
- Tkinter
- dataframe
- Java
- PANDAS
- matplotlib
- Python
- django
- array
- math
- Apache
- google apps script
- Redshift
Archives
- Today
- Total
달나라 노트
Python random : random (0 이상 1 미만의 실수 중에서 실수 난수값 리턴) 본문
Python/Python random
Python random : random (0 이상 1 미만의 실수 중에서 실수 난수값 리턴)
CosmosProject 2020. 12. 23. 03:20728x90
반응형
import random
print(random.random())
- Result
0.8036004848126851
random.random은 0이상 1미만의 실수 중 랜덤한 난수값을 반환합니다.
728x90
반응형
'Python > Python random' 카테고리의 다른 글
| Python random : shuffle (List 항목 섞기, list의 항목을 무작위로 재배열.) (0) | 2020.12.23 |
|---|---|
| Python random : choice (제시된 list 중에서 무작위로 하나를 선택하여 리턴) (0) | 2020.12.23 |
| Python random : randint (정해진 범위 내에서 중에서 정수 난수값 리턴) (0) | 2020.12.23 |
Comments