• derpgon@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    4 months ago

    walks into a casino Alright man, gimme the manuals to these bad boys right now, money ain’t gonna win itself.

    • IphtashuFitz@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      4 months ago

      Speaking of slot machines, every slot machine, electronic poker machine, etc. are just state machines that operate based on a stream of random numbers fed into them by another device.

      The random number generators (RNG’s) used for gaming are highly regulated (at least here in the US) and only a small handful of companies make them. They have to be certified for use by organizations like The Nevada Gaming Control Board. RNGs have to be secured so only NGC officials and other key people can access them. If they are opened unexpectedly or otherwise tampered with then they need to go into lockdown and stop generating numbers until an official resets it.

      The RNGs also need to be able to replay sequences of numbers on demand. If the same sequence of numbers are fed into a game and the user plays the same way then the result of the game should be 100% identical each time.

      • HexesofVexes@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        Extra fact - in the USA almost all games use long weighted reels.

        I believe this is by law, but may be misinformed.

        Also, if you know the rng gen you can game machines: a very very clever group in Russia bought up old machines from defunct casinos, reverse engineered the games, and then developed an app that let a user photograph x number of spins to find out what the seed was for the next spin, and from there told them to bet high or low based on the upcoming game. They made millions, and farmed it out to make more. (https://www.wired.com/2017/02/russians-engineer-brilliant-slot-machine-cheat-casinos-no-fix/)