# 무작위 숫자 생성 방법

컴퓨터 과학에서 진정한 무작위성은 어려운 주제이며, 혼자서 이를 달성하기는 어렵습니다. 무작위성이 프로젝트의 핵심일 때는 평판이 좋은 무작위 숫자 생성기(RNG)를 사용하는 것이 좋습니다.

#### RNG란 무엇인가요?

RNG는 예측할 수 없는 숫자 시퀀스를 생성하여 블록체인 프로젝트에서 공정성과 고유성을 보장합니다. 이를 통해 조작을 방지하고 공정한 결과를 보장하여 무결성과 신뢰성을 높입니다.

#### Chiliz 체인 개발자에게 의미하는 바는 무엇인가요?

RNG를 통합함으로써 스포츠 및 엔터테인먼트 프로젝트는 신뢰성, 흥미, 공정성을 크게 향상시킬 수 있습니다.

#### Pyth를 사용하여 구현하는 방법은?

Chiliz 체인의 테스트넷 "Spicy"는 Pyth의 Entropy를 지원합니다.

Entropy를 통해 개발자는 블록체인에서 빠르고 쉽게 무작위 숫자를 생성할 수 있으며, 이를 NFT 발행, 게임 등 다양한 응용 분야에 사용할 수 있습니다.

Solidity SDK를 통해 개발자는 RNG를 EVM 응용 프로그램에 쉽게 통합할 수 있습니다.

{% hint style="info" %}
Chiliz를 사용하여 Entropy를 사용하려면 다음 주소를 사용하십시오.

## Chiliz Mainnet

* Chain ID:\
  `chiliz`
* Entropy Contract Address:\
  `0x0708325268dF9F66270F1401206434524814508b`
* Provider:\
  `0x52DeaA1c84233F7bb8C8A45baeDE41091c616506`<br>

## Spicy Testnet

* Chain ID:\
  `chiliz-spicy`
* Entropy Contract Address:\
  `0xD458261E832415CFd3BAE5E416FdF3230ce6F134`
* Provider: \
  `0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344`
  {% endhint %}

Pyth는 Entropy에 대한 전체 문서를 제공하며, 다음을 포함합니다:

* [EVM에서 첫 번째 Entropy 앱 생성하기](https://docs.pyth.network/entropy/create-your-first-entropy-app)
* [Pyth Entropy를 사용하여 EVM 계약에서 무작위 숫자 생성하기](https://docs.pyth.network/entropy/generate-random-numbers/evm)
* [Pyth Entropy를 사용하여 공정한 동전을 던지는 방법을 보여주는 샘플 애플리케이션](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/examples/coin_flip/contract/src/CoinFlip.sol)


---

# 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://docs.chiliz.com/ko/undefined-2/undefined-1/undefined.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.
