# 무작위 값 가져오기

### 코드

```
{범위 시작}~{범위 끝} 사이 무작위 값 가져오기
```

***

### 설명

<mark style="color:purple;">`무작위 값 가져오기`</mark>는 범위 사이의 값에서 랜덤으로 값을 가져오는 함수예요.

범위의 시작과 끝을 포함해서 랜덤 값을 가져와요.

***

### 주의사항

* 딱히 없습니다!

***

### 파이썬 대응 코드

```
import random
num = random.randint(A, B)
```

***

### 예시

{% code title="예시 코드" %}

```
1~10 사이 무작위 값 가져오기 보여주기
```

{% endcode %}

{% code title="예시 코드의 출력" %}

```
4
```

{% endcode %}

***

### 검색 키워드

아무 값


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codebook.horang.it/readme/023.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
