Every engine
03Engine

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

  1. 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
PaysWeight, of 10,000,000Chance
500x9600.0096%
100x7,6800.0768%
20x57,6000.576%
10x144,0001.44%
5x384,0003.84%
2x1,056,00010.56%
1x1,728,00017.28%
0 (the spin loses)6,621,76066.2176%
rare big winsexact return 95.97% (9597/10000) · largest win 5,000x
PaysWeight, of 10,000,000Chance
5,000x1530.00153%
1,000x9600.0096%
200x5,7600.0576%
50x28,8000.288%
10x192,0001.92%
5x326,4003.264%
2x864,0008.64%
0 (the spin loses)8,581,92785.81927%
small wins oftenexact return 96% (24/25) · largest win 100x
PaysWeight, of 10,000,000Chance
100x3,8400.0384%
20x38,4000.384%
10x115,2001.152%
5x345,6003.456%
2x1,440,00014.4%
1x2,688,00026.88%
0 (the spin loses)5,368,96053.6896%

Dial at 97.5%

balancedexact return 97.5% (39/40) · largest win 500x
PaysWeight, of 10,000,000Chance
500x9750.00975%
100x7,8000.078%
20x58,5000.585%
10x146,2501.4625%
5x390,0003.9%
2x1,072,50010.725%
1x1,755,00017.55%
0 (the spin loses)6,568,97565.68975%
rare big winsexact return 97.5% (39/40) · largest win 5,000x
PaysWeight, of 10,000,000Chance
5,000x1560.00156%
1,000x9750.00975%
200x5,8500.0585%
50x29,2500.2925%
10x195,0001.95%
5x331,5003.315%
2x877,5008.775%
0 (the spin loses)8,559,76985.59769%
small wins oftenexact return 97.5% (39/40) · largest win 100x
PaysWeight, of 10,000,000Chance
100x3,9000.039%
20x39,0000.39%
10x117,0001.17%
5x351,0003.51%
2x1,462,50014.625%
1x2,730,00027.3%
0 (the spin loses)5,296,60052.966%

Dial at 99%

balancedexact return 99% (99/100) · largest win 500x
PaysWeight, of 10,000,000Chance
500x9900.0099%
100x7,9200.0792%
20x59,4000.594%
10x148,5001.485%
5x396,0003.96%
2x1,089,00010.89%
1x1,782,00017.82%
0 (the spin loses)6,516,19065.1619%
rare big winsexact return 98.98% (4949/5000) · largest win 5,000x
PaysWeight, of 10,000,000Chance
5,000x1580.00158%
1,000x9900.0099%
200x5,9400.0594%
50x29,7000.297%
10x198,0001.98%
5x336,6003.366%
2x891,0008.91%
0 (the spin loses)8,537,61285.37612%
small wins oftenexact return 99% (99/100) · largest win 100x
PaysWeight, of 10,000,000Chance
100x3,9600.0396%
20x39,6000.396%
10x118,8001.188%
5x356,4003.564%
2x1,485,00014.85%
1x2,772,00027.72%
0 (the spin loses)5,224,24052.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.

small wins often, dial 9900
seed 86a932fe37bb0fd66e0e0bff210a3308f82c5064b5b9d5f6ff59c29fe681f5ca
settings {"feel":"small wins often"}
draws int_below(10000000) = 503877
pays 5x (payX10k 50000)
balanced, dial 9900
seed e389f19b9d713eef8b409fec7259c3c3da111ed47b6cc48cd8d2265cb314e9a4
settings {"feel":"balanced"}
draws int_below(10000000) = 9040881
pays 0x (payX10k 0)

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.