Every engine
03Engine

Slots, played-out rounds

A slot whose every possible round was played out beforehand by its real rules: 6 columns of 5, a symbol pays with 8 or more of it anywhere, what paid is cleared and more drops in, scatters give free spins with multipliers. One draw picks a whole round.

Kind
one draw picks a whole round played out beforehand
Largest win
5,000x the stake
Name in the files
slots (books)
Version
6e5be709b5fd

Download this engine as one file

What the player sets

  • feel: small wins often, balanced or rare big wins (the table of weights: how often each kind of round comes)

Every round also takes the return dial in basis points, 9600 to 9900, and a stake.

The round, in order

  1. the rounds: 120,000 rounds ("books") were played out once by the rules below and are kept in one file (books: its name, its sha256, what each field is). A build loads the file and does not play the rounds again; round i is the file's i-th entry, counted from 0
  2. how a round was played: 6 columns of 5. Nine symbols (1 the richest) and a scatter land with the weights in rules.lands. A symbol that lies 8 times or more anywhere on the grid pays by rules.pays (for 8 or 9, for 10 or 11, for 12 or more); what paid is cleared, what is above drops, new symbols fall in from the top, and the grid is counted again, as long as something pays
  3. scatters are counted on the last grid of the spin: 4, 5 or 6 pay 3, 5 or 100 times the stake and give 10 free spins
  4. a free spin is played the same way, but each landing piece is a multiplier with the chance rules.freeSpins.multiplierChance, its value by the weights in rules.freeSpins.multipliers; multipliers are not cleared. A free spin's win is multiplied by the sum of the multipliers on its last grid (not when it won nothing). 3 or more scatters in a free spin add 5 spins; a round has at most 60 free spins
  5. the round pays the sum of its spins, cut at 5,000 times the stake
  6. each round has a weight for the feel. Start: 1000 when the round pays under 200 times the stake, 200 when under 1,000 times, 40 above that (one round among so many must not carry the return). small wins often: the weight x 13 div 10 for a pay above 0 and up to 5 times the stake, x 6 div 10 for 20 times or more. rare big wins: x 7 div 10 for a pay above 0 and up to 2 times, x 16 div 10 for 20 times or more. balanced: unchanged. The weight of each winning round is that number times 1000
  7. every round that pays nothing has one and the same weight z, set for the dial: z = (S / (rtp / 10000) - W) / L rounded up to a whole number, at least 1, where S is the sum over the winning rounds of weight x pay (pay in stakes), W the sum of their weights and L the number of losing rounds. tables gives z and the total weight at the three dial points
  8. the order is: the winning rounds as they come in the file, then the losing rounds as they come in the file. r = int_below(total weight); the round picked is the first whose running weight is above r; nothing in the round is decided after the bet

The rounds: rain-books-drop-v2.json.gz, 120,000 rounds as one JSON list in a gzip. The JSON text inside is 25,473,177 bytes, sha256 f1aba360552ae7f2e8ac6402d029b64e7cb18d3332a9e24e954aea25a864367b. What each field is, and the rules the rounds were made by, are in this engine’s file under books and rules.

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 picked round's pay (in hundredths of the stake), at most 5,000 times the stake. The return is the sum of weight x pay over the total weight. Because z is rounded up it is never above the dial, and it is within one millionth of it: tables gives each one exactly.

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%

The weightslargest win 955.4x
FeelWinning roundsLosing roundsWeight of each losing roundTotal weightChance of a winExact return
balanced45,46874,532910,117113,290,440,24440.124833% (11364400000/28322610061)95.999945%
rare big wins45,46874,5321,060,026115,645,917,83231.682969% (4580007500/14455739729)95.99997%
small wins often45,46874,532927,137127,246,334,88445.694801% (14536240000/31811583721)95.999956%

Dial at 97.5%

The weightslargest win 955.4x
FeelWinning roundsLosing roundsWeight of each losing roundTotal weightChance of a winExact return
balanced45,46874,532886,732111,547,509,42440.751784% (2841100000/6971719339)97.499945%
rare big wins45,46874,5321,036,155113,866,764,46032.178011% (1832003000/5693338223)97.499957%
small wins often45,46874,532900,871125,288,677,37246.408791% (14536240000/31322169343)97.499973%

Dial at 99%

The weightslargest win 955.4x
FeelWinning roundsLosing roundsWeight of each losing roundTotal weightChance of a winExact return
balanced45,46874,532864,055109,857,347,26041.378753% (2272880000/5492867363)98.999987%
rare big wins45,46874,5321,013,007112,141,497,72432.673061% (9160015000/28035374431)98.999967%
small wins often45,46874,532875,401123,390,347,33247.122778% (14536240000/30847586833)98.999986%

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: does not fit. 120,000 rounds in a file, not a table of 64 rows, and the grids come with the draw.

On the templates it would take: a round picked from thousands played out beforehand: far over 64 rows, and the grid has to come with the draw.

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 885b5d9ed0f2bc92f76de7b0edd69d7f9c7ec7d156827016fc3429d030956170
settings {"feel":"small wins often","mode":"books"}
draws int_below(123390347332) = 37920026786
pays 0.8x (payX10k 8000)
balanced, dial 9900
seed 87de869cd2f316c098e13205698ec2ea5e133da30009bab127dce9493c5c06dd
settings {"feel":"balanced","mode":"books"}
draws int_below(109857347260) = 33012135262
pays 2.4x (payX10k 24000)

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.