> For the complete documentation index, see [llms.txt](https://fella-blooms.gitbook.io/fella-blooms/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fella-blooms.gitbook.io/fella-blooms/fella-coin-flip.md).

# Fella Coin Flip

## Bet

Betting mechanism implemented into Fella Coin Flip.

## Ticket Routes

Ticket line that is directly connected to our garden and could be used for all of our games.

## CountDown

Real-time time Counting the start to the end of the Fella Coin Flip game.

## Get Result

The system will be fair for everyone to prove it let us give an overview of the system implemented in Fella Coin Flip:

```javascript
import "./styles.css";

let min = 0;
let max = 1000;

function getResult() {
  let res = getRandomInt(min, max) % 2 == 0 ? "head" : "tail";
  document.getElementById("app").innerHTML = `
    <p>Refresh page to see other results</p>
    <p>Result : ${res}</p>
    `;
  console.log(res);
}

function getRandomInt(min, max) {
  min = Math.ceil(min);
  max = Math.floor(max);
  return Math.floor(Math.random() * (max - min + 1)) + min;
}

getResult();
```
