# Provably Fair

### Provably Fair Mechanism Explained

In the context of Sugar Rush, the term "provably fair" might raise some questions for those who are new to decentralized systems or cryptographic verification methods. Below, we simplify what "provably fair" means and why it is crucial for the integrity of Sugar Rush.

#### What is Provably Fair?

"Provably Fair" refers to a system where the algorithms and actions are transparent and verifiable by anyone. It assures users that the game (or in this case, Sugar Rush) is impartial and hasn't been tampered with.

#### How Does It Work?

1. **Random Number Generation (RNG)**: At the heart of the provably fair system is a random number generator. This generates a series of numbers that are entirely random, and these numbers determine the outcome of Sugar Rush.
2. **Hash Function**: Before the event starts, the system generates a cryptographic hash of the random number. This hash is shared publicly. It serves as a 'commitment' to the random number without revealing it.
3. **Verification**: After the event is over, the original random number is revealed. Anyone can use this number to verify the hash, confirming that the event was indeed random and fair.
4. **Transparency**: All this information is recorded on the blockchain, making it publicly verifiable and ensuring complete transparency.

#### Why is it Important?

By using a provably fair mechanism, Sugar Rush guarantees that:

* The outcome is completely random and cannot be manipulated.
* All participants have an equal chance of experiencing the "Rush," based on the number of Sugar Cubes they've deposited.
* Participants can independently verify the fairness of the event after it has concluded.

Understanding that Sugar Rush operates on a provably fair mechanism can offer participants peace of mind, knowing that they are part of a transparent and fair system.


---

# 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.candychain.com/products/sugar-rush/provably-fair.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.
