Every engine
03Engine

Crash

A multiple climbs from 1.00x until it crashes at a point fixed by the draw; the player wins the multiple they cashed out at if that was before the crash.

Kind
one draw, a live curve
Largest win
10,000x the stake
Name in the files
crash
Version
6e74300d9739

Download this engine as one file

What the player sets

  • autoX100: a cash-out point set before the round (times 100), or 0 to cash out by hand

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

The round, in order

  1. r = int_below(2^52)
  2. crash point (x100) = rtp x 2^52 x 100 div (10000 x (2^52 - r)), at least 100 and at most 1000000 (10,000x)
  3. a cash-out at m (x100) wins when 100 < m <= crash point

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 the player may do

  • cashout (with the multiple x100)
  • crashed: the round ended with no cash-out

What it pays

A cash-out at m pays m x 100 (x10k). The chance the crash point reaches m is rtp / (100 x m) in the limit, so every cash-out point returns the dial. On the builder's service the climb runs on the service's clock; with the cash-out set before the round nothing depends on a clock.

Exact return: the dial at every cash-out point, rounded down.

Tables

No table: only with the cash-out set before the round; the live cash-out does not fit. What is paid follows from the steps above.

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 with a cap (crash). Only with the cash-out set before the round; the live cash-out does not fit.

On the templates it would take: the `crash` template with the cash-out set before the round; crash point = rtp*2^52*100 // (10000*(2^52 - draw)), capped at 10,000x. Its params are not published.

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.

cash out at 1.5x, dial 9900
seed ce3980e2ebbeff6cd19f5cdbf25ecd7dd971298d03216af411a13d2005a07bf7
settings {}
actions [["cashout",150]]
draws int_below(4503599627370496) = 3631816348444927
pays 1.5x (payX10k 15000)
cash out at 10x, dial 9900
seed 6bba38cead44e52a2b5ef06ff45ad0b159379ee37e144d64b80f5871db960621
settings {}
actions [["crashed"]]
draws int_below(4503599627370496) = 1382611716417991
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.

Nothing hidden is fixed when a round starts: what a step shows is drawn at that step. So the same file holds 24 more rounds played with a seed of its own for the start and for every action after it, as a round runs where each step’s randomness is formed only after the player has acted. The rules are the same; only the generator is started afresh at each step.