How do Computers pick Random?

Discussion in 'Computer Science & Culture' started by bgjyd834, May 21, 2011.

Thread Status:
Not open for further replies.
  1. bgjyd834 Registered Member

    Messages:
    13
    I don't want specifics, just theory on how computers, the solid, fact machines pick random numbers.
    Thanks!
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Search & Destroy Take one bite at a time Moderator

    Messages:
    1,467
    One of the real old-school ways is to go through digits in Pi.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Read-Only Valued Senior Member

    Messages:
    10,296
    The fact is they aren't truly random. To generate one, a computer need a "seed" number - often times that's something like the number of elapsed seconds today per the system clock. Then that seed is fed into an algorithm (a fixed-formula program) that generates the "random" output by performing calculations on the seed number.
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. James R Just this guy, you know? Staff Member

    Messages:
    39,421
    Just to add to Read-Only's post: the numbers computers produce are called "pseudo-random" because they are not really random, for the reasons that Read-Only gave.
     
  8. Rav Valued Senior Member

    Messages:
    2,422
  9. przyk squishy Valued Senior Member

    Messages:
    3,203
    If you've got cash to burn, there's also this.
     
  10. nietzschefan Thread Killer Valued Senior Member

    Messages:
    7,721
    Awesome topic.

    If you know the seed numbers of a certain VLT(video lottery terminal) or one armed bandit...you can really fk up a casino.

    it's the biggest flaw in gambling right now.
     
  11. Stryder Keeper of "good" ideas. Valued Senior Member

    Messages:
    13,105
    That's not exactly random (Although where you stop might be, however you could imply that depending on the length of digits that creates the range increases the level of processing power required to create an outcome, so it still generates certain finite ranges lessening the "random")

    PI to me is a bit like a Public Key used in Encryption, it's there to help decode the universe as a standard

    Please Register or Log in to view the hidden image!

     
  12. superstring01 Moderator

    Messages:
    12,110
    Naw.

    Casinos have a number of advantages.
    1. There are laws that protect them from exploitation by smart programmers, especially in gaming meccas like Las Vegas, Atlantic City and Macao.
    2. They have lucrative contracts with the producers of machines that require them to guard their "secrets" or the end of a contract. Those secrets are ensured through high security, as well as the "addition" of their employees-with-access to lists of those banned from casinos.
    3. A person who defrauds a casino not only risks running up against well funded law enforcement (who's budget comes totally from subsidies from lucrative casinos) but the casinos themselves who historically have a dirty track record of dealing with those who fuck them over.
    4. Casinos have a "if you win too much. . . " policy that will get you black listed in short order if you are even suspected of shady dealings.

    ~String
     
  13. nietzschefan Thread Killer Valued Senior Member

    Messages:
    7,721
    Believe me I ran into the "if you win too much..." policy once. Fucking assholes I was on a roll and NOT cheating.
     
  14. Dinosaur Rational Skeptic Valued Senior Member

    Messages:
    4,885
    My Mathcad & Mathematica software both have 15 or more pseudo-random number generators. One size does not fit all.

    I am fairly sure that a Web search would result in your finding quite a few algorithms for generating pseudo-random numbers.

    The simplest ones use a formula like the following.
    NextNumber = A*LastNumber + B, where A & B are suitable constants.​
    A simple algorithm like the above has a lot of flaws & should not be used for critical applications.
     
Thread Status:
Not open for further replies.

Share This Page