Scratch
One draw against a table of prizes, shown as a card to scratch. Three tables.
- Kind
- one draw, weighted table
- Largest win
- 5,000x the stake
- Name in the files
- scratch
- Version
- 3b0982f04245
Download this engine as one file
What the player sets
- feel: small wins often, balanced, or rare big wins
Every round also takes the return dial in basis points, 9600 to 9900, and a stake.
The round, in order
- the same as slots, on the scratch card's own tables: r = int_below(10000000), the first row whose running weight is above r is the prize
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
The prize times the stake; the table returns the dial or just under it.
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%
balancedexact return 96% (24/25) · largest win 500x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 500x | 960 | 0.0096% |
| 100x | 7,680 | 0.0768% |
| 20x | 57,600 | 0.576% |
| 10x | 144,000 | 1.44% |
| 5x | 384,000 | 3.84% |
| 2x | 1,056,000 | 10.56% |
| 1x | 1,728,000 | 17.28% |
| 0 (the spin loses) | 6,621,760 | 66.2176% |
rare big winsexact return 95.97% (9597/10000) · largest win 5,000x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 5,000x | 153 | 0.00153% |
| 1,000x | 960 | 0.0096% |
| 200x | 5,760 | 0.0576% |
| 50x | 28,800 | 0.288% |
| 10x | 192,000 | 1.92% |
| 5x | 326,400 | 3.264% |
| 2x | 864,000 | 8.64% |
| 0 (the spin loses) | 8,581,927 | 85.81927% |
small wins oftenexact return 96% (24/25) · largest win 100x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 100x | 3,840 | 0.0384% |
| 20x | 38,400 | 0.384% |
| 10x | 115,200 | 1.152% |
| 5x | 345,600 | 3.456% |
| 2x | 1,440,000 | 14.4% |
| 1x | 2,688,000 | 26.88% |
| 0 (the spin loses) | 5,368,960 | 53.6896% |
Dial at 97.5%
balancedexact return 97.5% (39/40) · largest win 500x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 500x | 975 | 0.00975% |
| 100x | 7,800 | 0.078% |
| 20x | 58,500 | 0.585% |
| 10x | 146,250 | 1.4625% |
| 5x | 390,000 | 3.9% |
| 2x | 1,072,500 | 10.725% |
| 1x | 1,755,000 | 17.55% |
| 0 (the spin loses) | 6,568,975 | 65.68975% |
rare big winsexact return 97.5% (39/40) · largest win 5,000x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 5,000x | 156 | 0.00156% |
| 1,000x | 975 | 0.00975% |
| 200x | 5,850 | 0.0585% |
| 50x | 29,250 | 0.2925% |
| 10x | 195,000 | 1.95% |
| 5x | 331,500 | 3.315% |
| 2x | 877,500 | 8.775% |
| 0 (the spin loses) | 8,559,769 | 85.59769% |
small wins oftenexact return 97.5% (39/40) · largest win 100x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 100x | 3,900 | 0.039% |
| 20x | 39,000 | 0.39% |
| 10x | 117,000 | 1.17% |
| 5x | 351,000 | 3.51% |
| 2x | 1,462,500 | 14.625% |
| 1x | 2,730,000 | 27.3% |
| 0 (the spin loses) | 5,296,600 | 52.966% |
Dial at 99%
balancedexact return 99% (99/100) · largest win 500x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 500x | 990 | 0.0099% |
| 100x | 7,920 | 0.0792% |
| 20x | 59,400 | 0.594% |
| 10x | 148,500 | 1.485% |
| 5x | 396,000 | 3.96% |
| 2x | 1,089,000 | 10.89% |
| 1x | 1,782,000 | 17.82% |
| 0 (the spin loses) | 6,516,190 | 65.1619% |
rare big winsexact return 98.98% (4949/5000) · largest win 5,000x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 5,000x | 158 | 0.00158% |
| 1,000x | 990 | 0.0099% |
| 200x | 5,940 | 0.0594% |
| 50x | 29,700 | 0.297% |
| 10x | 198,000 | 1.98% |
| 5x | 336,600 | 3.366% |
| 2x | 891,000 | 8.91% |
| 0 (the spin loses) | 8,537,612 | 85.37612% |
small wins oftenexact return 99% (99/100) · largest win 100x
| Pays | Weight, of 10,000,000 | Chance |
|---|---|---|
| 100x | 3,960 | 0.0396% |
| 20x | 39,600 | 0.396% |
| 10x | 118,800 | 1.188% |
| 5x | 356,400 | 3.564% |
| 2x | 1,485,000 | 14.85% |
| 1x | 2,772,000 | 27.72% |
| 0 (the spin loses) | 5,224,240 | 52.2424% |
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). Seven or eight rows a table, three tables.
9 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 scratch/balanced@9900, 8 rows, return 99%:
{
"rows": [
{
"multX1e4": "5000000",
"weight": 99
},
{
"multX1e4": "1000000",
"weight": 792
},
{
"multX1e4": "200000",
"weight": 5940
},
{
"multX1e4": "100000",
"weight": 14850
},
{
"multX1e4": "50000",
"weight": 39600
},
{
"multX1e4": "20000",
"weight": 108900
},
{
"multX1e4": "10000",
"weight": 178200
},
{
"multX1e4": "0",
"weight": 651619
}
],
"t": "weighted"
}All of them are in this engine’s file and in the definitions file.
Check a build against ours
36 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.