> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/ko/gaebal/goseup/onchein-nansu.md).

# 온체인 난수 생성

진정한 무작위성은 컴퓨터 과학에서 어려운 주제이며 독자적으로 달성하기 어렵습니다. 무작위성이 프로젝트의 핵심 요소라면 검증된 난수 생성기(RNG)를 사용하는 것을 권장합니다.

## RNG란 무엇인가요?

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

## Chiliz Chain 개발자에게 무엇을 의미하나요?

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

## Pyth를 사용하는 방법

Chiliz Chain은 Pyth의 Entropy를 지원합니다.

Entropy는 개발자가 NFT 민팅, 게임 등의 애플리케이션을 위해 블록체인에서 빠르고 쉽게 난수를 생성할 수 있게 해줍니다.\
Solidity SDK를 통해 개발자는 EVM 애플리케이션에 RNG를 쉽게 통합할 수 있습니다.

{% hint style="info" %}
Chiliz에서 Entropy를 사용하려면 다음 주소를 사용합니다.

#### Chiliz Mainnet

* Chain ID:\
  `chiliz`
* Entropy 컨트랙트 주소:\
  `0x0708325268dF9F66270F1401206434524814508b`
* 공급자:\
  `0x52DeaA1c84233F7bb8C8A45baeDE41091c616506`<br>

#### Spicy Testnet

* Chain ID:\
  `chiliz-spicy`
* Entropy 컨트랙트 주소:\
  `0xD458261E832415CFd3BAE5E416FdF3230ce6F134`
* 공급자:\
  `0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344`
  {% endhint %}

Pyth는 다음을 포함하여 [Entropy에 대한 전체 문서](https://docs.pyth.network/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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.chiliz.com/ko/gaebal/goseup/onchein-nansu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
