🎮 Gaming Solutions

Provably Fair Randomness

Build trust with your players. RaaS provides transparent, verifiable, and cryptographically secure randomness for games and gambling platforms.

Start Free →

🎰 Gaming Use Cases

🃏

Card Shuffling

Cryptographically shuffle decks

🎲

Dice Rolls

True random dice for RPGs, board games, and more

🎯

Matchmaking

Random team assignments and player matching

🏷️

Raffles & Giveaways

Transparent winner selection for promotions

✅ Example: Implementing Provably Fair

Provably fair gaming lets players verify that outcomes weren't manipulated. Here's how to implement it with RaaS:

1
Generate Server Seed

Before the game, fetch a random seed from RaaS. Hash it and show the hash to the player.

2
Player Provides Client Seed

Let the player input their own random value (or generate one client-side).

3
Combine & Generate Outcome

Combine both seeds cryptographically to determine the game outcome.

4
Reveal & Verify

After the game, reveal the server seed. Player can verify the hash matches and outcome was fair.

Provably Fair Dice Roll Example
    import hashlib
    import requests

    API_KEY = "raas_your_api_key"

    def provably_fair_dice():
        # Step 1: Get server seed from RaaS
        resp = requests.get(
            "https://www.getrandm.com/api/hex?length=64",
            headers={"X-API-Key": API_KEY}
        )
        server_seed = resp.json()["hex"]
        
        # Show hash to player BEFORE they commit
        server_hash = hashlib.sha256(server_seed.encode()).hexdigest()
        print(f"Server seed hash: {server_hash}")
        
        # Step 2: Get client seed from player
        client_seed = input("Enter your seed: ")
        
        # Step 3: Combine seeds and generate outcome
        combined = f"{server_seed}:{client_seed}"
        result_hash = hashlib.sha256(combined.encode()).hexdigest()
        dice_roll = (int(result_hash[:8], 16) % 6) + 1
        
        # Step 4: Reveal server seed for verification
        print(f"Server seed: {server_seed}")
        print(f"Dice roll: {dice_roll}")
        
        return dice_roll

🛡️ Why Companies Trust RaaS

🔒 Cryptographically Secure

Our randomness comes from hardware RNG and FIPS-grade algorithms. No patterns, no predictions, no manipulation.

⚡ Low Latency

Fast response times ensure smooth gameplay. Random values delivered in milliseconds.

Build Fair Games Players Trust

Start with 20 free API calls per day. Scale to millions of game rounds.

Get Your API Key →