Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. 20 Number Game

20 Number Game

Scheduled Pinned Locked Moved General Discussion
15 Posts 4 Posters 52 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 89th8 Offline
    89th8 Offline
    89th
    wrote on last edited by
    #1

    Apparently the chances of getting all 20 numbers is 0.0112%... basically almost impossible.

    Play here: https://pabo.github.io/20numbers/

    How to play: You have to put each randomly generated 0-1,000 number into one of the 1-20 positions and keep going until you run out of positions. My first try I got to 10 numbers before I was squeezed out.

    I found this because of this video of a guy doing it: https://www.reddit.com/r/theydidthemath/comments/164hq3h/request_what_are_the_odds/

    Enjoy!

    1 Reply Last reply
    • HoraceH Online
      HoraceH Online
      Horace
      wrote on last edited by
      #2

      Hit the reset button till you get a very low or very high number, start there.

      Education is extremely important.

      1 Reply Last reply
      • 89th8 Offline
        89th8 Offline
        89th
        wrote on last edited by
        #3

        Got to 13! LOL

        1 Reply Last reply
        • HoraceH Online
          HoraceH Online
          Horace
          wrote on last edited by
          #4

          I guess those odds assume perfect play, which is probably not easy.

          Education is extremely important.

          jon-nycJ 1 Reply Last reply
          • jon-nycJ Offline
            jon-nycJ Offline
            jon-nyc
            wrote on last edited by jon-nyc
            #5

            Got 10 first two tries.

            If you don't take it, it can only good happen.

            1 Reply Last reply
            • HoraceH Horace

              I guess those odds assume perfect play, which is probably not easy.

              jon-nycJ Offline
              jon-nycJ Offline
              jon-nyc
              wrote on last edited by
              #6

              @Horace said in 20 Number Game:

              I guess those odds assume perfect play, which is probably not easy.

              I would think those are the odds assuming you simply map the numbers to increments of 50.

              If you don't take it, it can only good happen.

              HoraceH 1 Reply Last reply
              • jon-nycJ jon-nyc

                @Horace said in 20 Number Game:

                I guess those odds assume perfect play, which is probably not easy.

                I would think those are the odds assuming you simply map the numbers to increments of 50.

                HoraceH Online
                HoraceH Online
                Horace
                wrote on last edited by
                #7

                @jon-nyc said in 20 Number Game:

                @Horace said in 20 Number Game:

                I guess those odds assume perfect play, which is probably not easy.

                I would think those are the odds assuming you simply map the numbers to increments of 50.

                Not a bad start for an approximation of perfect play, but there would be more to it than that.

                Education is extremely important.

                1 Reply Last reply
                • jon-nycJ Offline
                  jon-nycJ Offline
                  jon-nyc
                  wrote on last edited by jon-nyc
                  #8

                  Yes but my point is those odds probably assume the simple mapping, not some dynamic mapping based on the numbers that have come.

                  If you don't take it, it can only good happen.

                  1 Reply Last reply
                  • jon-nycJ Offline
                    jon-nycJ Offline
                    jon-nyc
                    wrote on last edited by
                    #9

                    If Klaus were here he could write 3 lines of code in some obscure high level language that would confirm or reject my hypothesis using Monte Carlo methods.

                    If you don't take it, it can only good happen.

                    1 Reply Last reply
                    • HoraceH Online
                      HoraceH Online
                      Horace
                      wrote on last edited by
                      #10

                      In the reddit thread, someone did code a perfect play algo. Maybe it just assigns numbers to their closest unoccupied bin. But I doubt it. I haven't looked.

                      Education is extremely important.

                      1 Reply Last reply
                      • 89th8 Offline
                        89th8 Offline
                        89th
                        wrote on last edited by
                        #11

                        Here's the python code if you are nerdy enough to understand it:

                        https://gitlab.com/whweaver/20-number-challenge

                        1 Reply Last reply
                        • 89th8 Offline
                          89th8 Offline
                          89th
                          wrote on last edited by
                          #12

                          Got to 16! 4 numbers left. Don't think I'll beat that anytime soon.

                          1 Reply Last reply
                          • CopperC Offline
                            CopperC Offline
                            Copper
                            wrote on last edited by
                            #13

                            10, 8, 15, 12

                            1 Reply Last reply
                            • HoraceH Online
                              HoraceH Online
                              Horace
                              wrote on last edited by
                              #14

                              I just got 21.

                              Education is extremely important.

                              1 Reply Last reply
                              • CopperC Offline
                                CopperC Offline
                                Copper
                                wrote on last edited by
                                #15

                                Pictures or it didn't happen.

                                1 Reply Last reply
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups