> For the complete documentation index, see [llms.txt](https://sp8de-docs.gitbook.io/s-p-8-d-e-or-white-paper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sp8de-docs.gitbook.io/s-p-8-d-e-or-white-paper/formula-for-selecting-a-quantum-random-number-for-the-user.md).

# 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>
