# Formula for Selecting a Quantum Random Number for the User

The formula consists of the sum of blockchain variables, such as the block number, block prefix, account name in numeric representation, and the current time. Additionally, it includes the sum of the hash elements of the last 5 quantum values. After obtaining a hash from the result, the winning number is derived from the hash from the list.

<figure><img src="/files/NKnSzzEiYa2UB06DQCTz" alt=""><figcaption></figcaption></figure>

**Where:**&#x20;

<figure><img src="/files/GLW4Dm4cP7lwxP4yObnb" alt=""><figcaption></figcaption></figure>


---

# 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://sp8de-docs.gitbook.io/s-p-8-d-e-or-white-paper/formula-for-selecting-a-quantum-random-number-for-the-user.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.
