If you walk across a casino floor in Las Vegas, you are surrounded by thousands of high-performance computers. To the casual observer, these machines are “random.” But to a Systems Architect, they are masterpieces of Stochastic Engineering.
As a Las Vegas native, I’ve been surrounded by the culture and mechanics of gaming my entire life. Professionally, my career has spanned over twenty years of architecting “first-build” systems across diverse industries—from patented solar-powered hardware at Wiser Watts to decentralized finance at Radix DLT. However, it was my tenure as a CTO in the regulated gaming industry that provided the most profound lesson for my current work in Artificial Intelligence: An LLM is essentially a massive, linguistic slot machine.
If you want to understand how to control an AI, you first have to understand how we manage the “controlled randomness” of a casino.
1. The Stochastic Pivot: Moving Beyond “If-Then”
Most software is deterministic. You write a line of code, and it executes exactly the same way every time. If
However, both Casino Games and Large Language Models (LLMs) are stochastic. They operate on probability distributions. When you “prompt” an AI, the model isn’t looking up an answer in a database; it is calculating the mathematical probability of what the next word (token) should be based on the billions of patterns it has seen before.
As a Systems Architect, my job isn’t to tell the system exactly what to do. It’s to manage the fences around the randomness.
2. The Gaming Side: Engineering the “Paytable”
In my time as CTO at Pervasive Gaming, we built regulated math models that had to withstand the scrutiny of global certification labs.
The RNG: The Source of Truth
At the heart of every machine is a Random Number Generator (RNG). It’s a high-speed engine cycling through billions of numbers. When you hit the “Spin” button, the system “picks” a number. That number maps to a virtual reel stop.
RTP & Volatility: The Fences
We use two primary “knobs” to control the player experience:
Return to Player (RTP): This is the “Mean.” If a machine has a 95% RTP, it means over millions of spins, it will mathematically return
$\$0.95$ for every dollar. It is the long-term predictable average.Volatility (Variance): This is the “Swing.” A low-volatility machine pays out small amounts frequently (boring but safe). A high-volatility machine has long “dry spells” followed by massive jackpots (the “Mathematics of Excitement”).
In gaming, if your randomness falls outside the “legal” standard deviation, your game will never make it to market or hit the casino floor. Compliance is the art of proving your randomness is honest.
3. The AI Side: The Inference Knobs
When we move to AI, the “virtual reels” are replaced by “tokens” (fragments of words). When you ask an AI a question, it predicts the next token. But how does it choose which one to pick?
Temperature: The Volatility Knob
In AI, “Temperature” is our volatility setting.
Low Temperature (e.g., 0.1): The AI always picks the most mathematically “safe” next word. It’s predictable and factual, but often robotic. It’s the equivalent of a 99% RTP slot machine with no jackpot—accurate, but lacking soul.
High Temperature (e.g., 0.9): The AI is allowed to pick less likely words. This leads to “creativity” and “personality,” but also to hallucinations—the AI’s version of a “bad beat.”
Top-P (Nucleus Sampling): Pruning the Tree
Top-P is how we keep the AI from going off the rails. It tells the model: “Only look at the top
4. Controlled Randomness: Why Perfection is a Bug
Why don’t we just set the AI Temperature to zero and make it perfectly predictable?
Because perfection feels broken. If a slot machine paid out exactly
We use probability engines to create authenticity. The challenge for the architect—whether managing the regulatory constraints of a gaming engine or architecting an AI agent for a startup—is building a deterministic wrapper around this non-deterministic engine to ensure the “chat” is engaging while the “data” remains accurate.
5. The Certification Frontier: Auditing the Output
This is where the history of GLI (Gaming Laboratories International) certification becomes a blueprint for the future of AI.
In traditional gaming, we certify the RNG code and the Math Model. We audit the line-of-code logic. However, in AI, we cannot audit the “code” (the weights) in the same way because a neural network is a black box of billions of parameters.
The Future of AI Regulation is “Behavioral Auditing.” We are entering a world where we will need AI Certification Labs that mirror gaming labs. We won’t audit the model’s internal weights; we will audit its “behavior” against established standard deviations of safety, ethics, and accuracy—much like we ensure a slot machine doesn’t exceed its legal volatility or deviate from its certified paytable.
6. The Systems Perspective: Mastering the Math of Uncertainty
To be a great Systems Architect in the AI era, you have to embrace the math of uncertainty.
Managing complex systems—whether they were processing millions of POS transactions, managing solar energy efficiency, or regulating gaming outcomes—taught me that you don’t need to fear randomness. You just need to know how to build the fences around it.
Whether I’m engineering a Class II gaming engine or an autonomous AI agent, the goal is the same: Building a system that is creative enough to be useful, but predictable enough to be trusted.
Bryan Sharpley is a Technical Leader and Systems Architect currently pursuing an M.S. in AI. He is a Las Vegas native with 20+ years of experience in the “first-build” phase of complex, regulated systems.

