# 掷骰子

Pixudi 中的掷骰子是在链上实现的，以确保它是随机的并且不能被任何人修改。 该过程是多步骤的：

* 点击**掷骰子**按钮后，会向服务器发送请求，并调用智能合约的 GET 函数，生成一个随机值
* 在服务器上获取结果
* 将结果发送给玩家


---

# 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.pixudi.com/pixudi-manual/ch/qu-kuai-lian-te-dian/zhi-tou-zi.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.
