Methods
Roulette research guide
Last updated: November 28, 2026.
This is the long read for the Robrun Roulette desk. It explains how spins are recorded, what a notification timestamp measures, how each statistical test is interpreted, and why a score or a seed module is still an experiment. It is written for European single-zero roulette, pockets 0 through 36.
Nothing below is a betting system. A departure in a finite sample does not establish that a generator is exploitable or that the next number can be named. Where the project notes mention anomalies, they are described as observations that need another look.
Spin recorder
The recorder’s job is archival. It does not interpret the wheel. It writes completed results so that later tests can assume a sequence instead of a pile of screenshots.
How records are collected
A line is written when a spin has a result. The recorder does not store a guess made while the ball is in motion. Each line in roulette_spins.txt holds the time the result was recorded and the winning number, an integer from 0 to 36. The next result is appended. File order is session order.
The recorder is expected to stay with one session, including sessions of more than 200 consecutive outputs. That length is ordinary for a sitting and still short for a 37-pocket distribution, which is why the file is allowed to grow past it instead of being rotated at a round number.
Timestamps and sequential storage
The timestamp on a spin line organizes the archive. It separates one sitting from the next, and it shows gaps where recording stopped. It is a record time, not the millisecond arrival time of the server notice. Those two clocks are easy to confuse and should be stored apart.
Sequential storage is what makes a neighbor meaningful. The spin after number 17 is the next line, not the next time 17 appears. Sorting by number, dropping zeros, or splitting a long session into chapters removes the object the runs test and the lag calculations are defined on.
Why a long dataset is worth keeping
Chi-square on 37 pockets wants expected counts that are not tiny. At 200 spins the expected count is only a little above five, so the approximation is fragile and the uncertainty on each pocket is wide. A longer unbroken series tightens the frequencies and, more importantly, gives sequence tests enough pairs.
Autocorrelation at lag 10 uses a spin and the spin ten places before it. Streak continuation needs enough completed streaks to estimate a rate. A short chopped log can be described, but it cannot support those estimates honestly. Length is a condition of the method, not a promise that the method will find an edge.
Reviewing a historical sequence
Review means reading roulette_spins.txt from the earliest timestamp to the latest without reordering it. Check that times move forward, that every value is inside 0–36, and that a long pause is visible as a pause. Then decide whether the series is one session or two sessions that were concatenated by mistake.
The session review page is the operational version of that pass. A review can highlight a streak or a quiet number. Highlighting is not a finding. The formal tests start only after the file has survived this inspection.
Timing log
The timing log is a second instrument. It answers when a particular notice arrived. It does not answer what the next notice will say.
What notification timing represents
RouletteWinningNumberNotificationData is the notice that carries the winning number. The timing log stores the local receipt time of that notice, in milliseconds. The quantity of interest is arrival. It is not the moment a casino committed to a pocket, and it is not automatically the moment the animation started or finished.
Local receipt also includes everything between the sender and the log: scheduling, buffering, and the clock on the machine that wrote the stamp. A timestamp is an observation of that whole path.
How the millisecond stamps are recorded
Each notice contributes one integer millisecond stamp, kept in round order so it can be aligned with the matching line in roulette_spins.txt. The spin file says which number was recorded. The timing log says when the notice for that number arrived. Alignment is a data step. If the two series have different lengths, the extra or missing round has to be found before any comparison of “early” and “late.”
Comparing rounds
Across rounds, the useful comparison is the position of the receipt stamp relative to other times kept for the same round, when those times exist: the opening of the round, and the completion of the spin animation. A notice that clusters near the open is a different timing pattern from a notice that clusters as the animation ends.
Compare the pattern across many rounds, not across two. A single early stamp can be a stalled clock or a delayed animation. A stable offset, in the same direction, is the observation worth writing down. Stability still does not identify the mechanism.
Start of round, or end of animation
Researchers use the log to investigate whether number notices arrive when the round starts or only near the end of the animation. Those hypotheses are about scheduling. An animation can be a presentation of a number the client already received, or a presentation that finishes as the number arrives. The stamps can help separate those stories only when the other round times were recorded with the same care.
Even a clear “early” cluster is a statement about messages. It is not a statement that the number was available to a player in a form the game did not intend, and it is not a method for the next round. Clock skew and buffering remain available explanations.
Why timing is not advance knowledge
Advance knowledge would mean the outcome was obtained before the game revealed it, and that it could be used as such. A receipt stamp does not show either part. It shows when a notice hit the logger. Treating an early stamp as a solved game confuses a clock with a prediction.
The prediction interface does not read this log and print a number. Its status remains seed cracking in development.
Statistical analysis engine
The engine scores incoming spin data as it arrives. Each method below is a screen. Together they describe a sample. They do not vote on the next pocket, and a finite-sample departure does not establish that a random number generator is exploitable.
Chi-square goodness of fit
The chi-square test compares the 37 observed counts, pockets 0 through 36, with the fair model in which each pocket has probability 1/37. Expected count is the number of spins divided by 37. The statistic is the sum of (observed − expected)² / expected, referred to a chi-square distribution with 36 degrees of freedom.
A large value means the counts are more uneven than that model usually produces. It does not say which pocket is heavy in a way you can bet, and a single pocket’s surplus is a poor summary of a 36-degree statistic. Around 200 spins, expected counts sit near the conventional floor of five, so the tail probability is approximate. Collecting more spins is the remedy. Declaring the generator broken is not.
Z-score proportion tests
The z-score tests collapse the wheel into bets people actually name. For a category with null probability p, z equals (p̂ − p) / √(p(1−p)/n), where p̂ is the sample proportion. Red and black use p = 18/37. Odd and even use 18/37. High, defined as 19–36, and low, defined as 1–18, use 18/37. Each dozen and each column uses 12/37. Each straight number uses 1/37. Zero stays in n. It is not red, black, odd, even, high, low, or a member of a dozen in the even-money sense.
Interpretation is ordinary: a large positive z means the category appeared more often than the null, a large negative z means less often. The categories overlap, so the z-scores are dependent. Looking at red, the dozens, and all 37 straights, then talking about the most extreme one, overstates the surprise. A z past ±1.96 in one session is a flag for the research score, not a side to take.
Wald–Wolfowitz runs test
The runs test ignores whether red is ahead on the night and asks whether the order looks shuffled. In a binary series a run is a maximal block of the same label. Too few runs means clumping. Too many means alternation. The null is random order. It is not the chi-square null, and a wheel can pass one and fail the other.
Because zero is a third color outcome, the binary series has to be defined on purpose. Red versus not-red is a different test from odd versus not-odd. The desk records which coding it used. A significant runs result in one session, which is the kind of departure the project notes report for some sittings, means that sitting’s order was lumpy or alternating relative to the null. It does not name the next label.
Shannon entropy
Shannon entropy compresses the empirical distribution into one number, H = −Σ p̂ᵢ log₂ p̂ᵢ, over the 37 pockets. If every pocket were equally likely, H would be log₂(37), approximately 5.209 bits. The sample value is biased downward at short lengths: unseen pockets contribute nothing, and sampling noise reduces the estimate.
Use entropy as a spread check beside chi-square, not as a rival verdict. Chi-square is sensitive to particular pockets. Entropy is not. A low value says the sample is concentrated. It has no sign that points at a pocket, so it cannot be “followed.” A value near the ceiling says the sample is spread out, which is the uninteresting case for anyone hunting a bias, and it is also the case a fair wheel produces once n is large.
Autocorrelation to lag 10
Autocorrelation at lag k is the correlation of the numeric series with itself shifted by k spins. The engine computes lags 1 through 10. Under independence each population autocorrelation is 0. A rough pointwise band is ±1.96/√n. That band is for one lag, chosen in advance. Inspecting ten lags, over many sessions, manufactures crossings.
There is a further limit. Pocket numbers are labels. The arithmetic distance between 5 and 6 is not a distance the layout or the payout treats as meaningful in this test. Numeric autocorrelation can still detect a crude repeating pattern in a weak laboratory generator. In the project notes, some sessions show this kind of structure. The correct status of those sessions is “review,” not “solved.” A lag that sticks out does not predict the spin ten places ahead.
Streak continuation
Streak continuation is narrower than the runs test. Conditioning on a color streak that has already reached length k, it estimates how often the next spin extended it. Under independence that probability does not depend on k. With zero retained, it stays near 18/37 for red and for black.
The gambler’s fallacy claims a long streak must break. A system that bets with the streak claims the opposite. Both treat a sample rate as a law. The engine reports the rate at the lengths that actually occurred. Rates estimated from a handful of long streaks are noisy, which is why a dramatic continuation percentage in one file is not carried forward as a rule.
Color-to-color transition matrix
The transition matrix is the full table of successive colors. Rows and columns are red, black, and zero. The entry in row i and column j is the proportion of color-i spins that were followed by color j. Under independence, every row equals the marginal color distribution: about 18/37, 18/37, and 1/37.
Read rows, not the single largest cell. A row with many visits can be compared with the marginals. The zero row rarely has many visits, so its percentages swing. The matrix is the detailed picture behind streak continuation. It is still a picture of pairs already seen. Publishing the largest off-diagonal cell as “the pattern” is how a sample gets promoted into a strategy. The desk does not make that promotion.
How a departure should be interpreted
A departure means the chosen statistic, on this sample, sat in a tail of its null distribution. The next questions are mundane. Was the log one session? Was zero handled as the test assumes? How many tests were looked at? Would the same flag appear in a later session collected the same way?
If those questions are not answered, the departure stays a property of the file. It does not become evidence that the generator is predictable, and it does not become a stake. That limit applies to every method on this page, including the ones the notes have seen move.
Research score
The experimental score exists so a person does not have to hold seven test results in their head. It is a screening index for sessions. It is not a probability of winning the next spin.
What the score combines
The score combines the distribution results and the sequence results for one session: the chi-square summary, the group z-scores, the runs statistic under its stated coding, entropy relative to the 5.209-bit ceiling, the largest autocorrelations inside lags 1–10, and the streak and transition summaries. The combination is a way to rank logs for follow-up. A higher score means “this file disagreed with the nulls in more places,” not “this file yields the next number.”
Because the ingredients are dependent, the score is not a p-value and should not be quoted as one. Two sessions with the same score can have failed different tests. The page that lists the ingredients is more informative than the number alone.
Anomalies in the project notes
The supplied notes report deviations in autocorrelation and in the runs test in certain sessions. Those are the observations the score is meant to surface. They are not presented here as proof of a vulnerable server generator. A session can be lumpy in order and still be unpredictable, and a session can look clean and still be the wrong object for a seed study.
No numeric threshold on this site means “exploit found.” If a later study defines a threshold, it has to be fixed before the sessions used to test it are inspected. The notes as they stand do not meet that bar.
False positives and sample size
False positives are the default expectation. Each session is a bundle of tests, and the archive is a bundle of sessions. Autocorrelation alone offers ten lags. Add red, black, dozens, columns, and 37 straights, and a quiet wheel will still produce flags. Ranking by the most extreme flag and then telling the story of that flag is a known way to fool yourself.
Sample size cuts the same way. A few hundred spins cannot pin a 37-way distribution tightly, and they cannot make a lag-10 correlation precise. The score will move from session to session under a fair wheel. Movement is not a finding until it is replicated on data that were not used to notice it.
Unpredictability and independent validation
Unpredictability here is a practical claim: the next spin is not identified by the tests above. A generator can be a poor fit to a textbook null in a short window and still offer no usable forecast. Passing the tests is also not a certificate. The tests are coarse.
Independent validation means a second implementation, a written protocol, and a comparison against later spins held out from the score. It also means saying which generator is even a candidate. The desk does not currently publish that confirmation. Until it can, the honest summary of a high score is that the session should be reviewed again.
Seed research modules
The seed work is a different question from the statistical score. The score asks whether a sample looks like independent fair draws. The modules ask whether a sequence is even in the same family as a known generator. A “no” is informative. A “yes” in the laboratory is not a live casino result, and this guide does not report a yes against a live table.
sysrand_crack.c
This module investigates the C library rand() family. Historically that interface has been a small-state generator, which is why it is a teaching case and a poor cryptographic generator. The research purpose is to test whether a captured laboratory sequence is consistent with that family. Consistency with a known weak generator, in a program you control, does not say what a casino server runs.
unity_rand_crack.c
This module investigates Unity’s Random family. It is a different algorithm from the C library, used by games built in that engine. The purpose is a controlled comparison against a build that actually calls it. A match on a private test build is evidence about that build. It is not evidence about an online casino, and it is not a recovered production seed.
pcg32_seed_crack.c
This module investigates PCG32, a permuted congruential generator. The family has a wider state than a teaching LCG and emits 32-bit outputs. The research purpose is to ask whether a recorded sequence belongs to that family at all. The file name states the question under study. It does not document a successful seed recovery, and this site will not add a fictional one.
What the three modules do not establish
They do not establish that a live roulette game uses any of the three families. They do not establish that a seed was recovered from a production system. They do not establish that a future spin was predicted. Those would be separate, verified results, and they are not in the notes this guide is based on.
The public pages stop at purpose, family, and limit. They do not include a search procedure. The companion note is seed modules and their limits.
Prediction interface
The roulette tab already has a place for a prediction. The line it displays is “Seed cracking in development.” That line is the result. There is no number beside it, no color, and no confidence percentage, because those figures would be a simulation presented as an output.
What the tab is allowed to show
The tab may show the status of the experiment and point back to the logs and the tests. It may not show a fabricated next number, a “bet on” instruction, or a confidence value computed for appearance. A future version that did show a number would need a held-out check against spins that were not used to produce it. That check is not available, so the interface does not pretend.
If you are deciding whether the rest of the desk is useful without that tab, it is. The recorder, the timing log, and the tests describe data you can audit. The predictor does not, yet. Access terms do not change this. Monthly and lifetime are described in monthly or lifetime.
Where to read next
Recording: spin recorder, timing log, session review. Tests: distribution, sequence, color transitions. Modules: seed research. The set, if you want one checkout, is the full set.
Questions
Does a high research score mean the next spin is known?
No. The score ranks sessions for another look. The project notes mention autocorrelation and runs-test deviations in some sessions. Those are observations, not a reconstructed generator.
What does the prediction tab show?
The status “Seed cracking in development.” It does not show a number, a color, or a confidence figure.
Which wheel are the null probabilities for?
European single-zero roulette, 37 pockets. Red, black, odd, even, high, and low use 18/37. Dozens and columns use 12/37. A straight uses 1/37.