Coin flip
Heads or tails on one fair flip.
- Kind
- one draw, two sides
- Largest win
- 1.98x the stake
- Name in the files
- coin
- Version
- be111f4cc81c
Download this engine as one file
What the player sets
- side: 0 or 1
Every round also takes the return dial in basis points, 9600 to 9900, and a stake.
The round, in order
- flip = int_below(2)
- the bet wins when flip = side
int_below(m) is a whole number from 0 to m-1: limit = 2^64 - (2^64 mod m); take values until v < limit; return v mod m. shuffle: Fisher-Yates from the end, j = int_below(i+1). Words: HMAC-SHA256(key = seed, "STORM-DRBG|" || u64be(j)), cut into big-endian u64s.
What it pays
A win pays 2 x rtp (x10k): 1.98 at 99%.
Tables
The tables the round uses at three points of the dial, each with its exact return. A multiple is kept in the files as a whole number times 10,000, rounded down (Storm’s multX1e4); here it is written out.
Dial at 96%
coinexact return 96% (24/25) · largest win 1.92x
| Side | Pays |
|---|---|
| 0 | 1.92x |
| 1 | 1.92x |
Dial at 97.5%
coinexact return 97.5% (39/40) · largest win 1.95x
| Side | Pays |
|---|---|
| 0 | 1.95x |
| 1 | 1.95x |
Dial at 99%
coinexact return 99% (99/100) · largest win 1.98x
| Side | Pays |
|---|---|
| 0 | 1.98x |
| 1 | 1.98x |
On Storm
In Storm’s core this engine is built from this page as written, with the settings and the largest win above, and is right when it reproduces the test rounds below. The rest of this part is about the templates Storm has live today, which is the way onto Storm until then.
Our reading against Storm’s templates: fits (weighted). Two rows.
3 definitions are written out for this engine, one for each table at each dial point, in the shape of the weighted game Storm has published (GET /v1/games on Storm devnet 2, the one published game (template 1, weighted), read 19 Nov 2026). Limits they were held to: maxMultiple 10,000x, return 70% to 99%, rows 64. They have not been sent to Storm and Storm has not checked them. This one is coin@9900, 2 rows, return 99%:
{
"rows": [
{
"multX1e4": "19800",
"weight": 1
},
{
"multX1e4": "0",
"weight": 1
}
],
"t": "weighted"
}All of them are in this engine’s file and in the definitions file.
Check a build against ours
24 whole rounds, each from a seed given in the file. A build is right when, from the same seed, settings, dial and actions, it makes the same draws in the same order and pays the same amount. The seed of a test round is sha256("rain-engine-vector|<engine>|<case>|<rtp_bps>|<i>"), given in hex in each vector.
The rest are in this engine’s file, with the full result of each round. The reference build plays this engine and reproduces every one of them.