0En línea
In our Jackpot game, each participant places a bet. Each bet allocates a continuous ticket range in the order bets arrive (e.g., if the first player bets 100, their range is 0–99, the next 200, their range is 100–299, etc.). The more you bet, the larger the portion of 0–100 you cover.
Once bets close, a random percentage from 0 to 100 (rounded to six decimal places) is generated using the server seed and the EOS block. We reveal our server seed after the round ends, so anyone can verify the exact roll number themselves.
1function generateTicketValue(
2 serverSeed: string,
3 clientSeed: string,
4 nonce: number | string,
5 range: { min: number; max: number; fixed: number },
6): number {
7 const chanceHash = `${serverSeed}-${clientSeed}-${nonce}`;
8 const percentage = new Chance(chanceHash).floating(range) / 100;
9 return percentage;
10}