Skip to main content
added 49 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

05AB1E, 27 2626 25 bytes

Saved a byte thanks to Adnan.
Saved another byte thanks to Kevin Cruijssen.

5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û5Å0₄FD„,;ÇI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!Try it online!

Explanation

5Å0                          # initialize with a list of 5 zeroes
   ₄F                        # 1000 times do:
     D                       # duplicate the list
      ŽH|2ôI‹„,;ÇI‹                # check if the input is larger than 44 and/or 59
             O·              # sum and double, yielding (0,2 or 4)
              ÝΩ             # pick a random number between and 0 and the number above
                ©è           # get the count in that level
                  >          # increment it
                   ®ǝ        # insert it at the same position
                      ]      # end loop
                       ε0Û   # remove leading zeroes on each level

05AB1E, 27 26 bytes

Saved a byte thanks to Adnan.

5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                          # initialize with a list of 5 zeroes
   ₄F                        # 1000 times do:
     D                       # duplicate the list
      ŽH|2ôI‹                # check if the input is larger than 44 and/or 59
             O·              # sum and double, yielding (0,2 or 4)
              ÝΩ             # pick a random number between and 0 and the number above
                ©è           # get the count in that level
                  >          # increment it
                   ®ǝ        # insert it at the same position
                      ]      # end loop
                       ε0Û   # remove leading zeroes on each level

05AB1E, 27 26 25 bytes

Saved a byte thanks to Adnan.
Saved another byte thanks to Kevin Cruijssen.

5Å0₄FD„,;ÇI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                         # initialize with a list of 5 zeroes
   ₄F                       # 1000 times do:
     D                      # duplicate the list
      „,;ÇI‹                # check if the input is larger than 44 and/or 59
            O·              # sum and double, yielding (0,2 or 4)
             ÝΩ             # pick a random number between and 0 and the number above
               ©è           # get the count in that level
                 >          # increment it
                  ®ǝ        # insert it at the same position
                     ]      # end loop
                      ε0Û   # remove leading zeroes on each level
deleted 1 character in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

05AB1E, 27 26 bytes

Saved a byte thanks to Adnan.

5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                          # initialize with a list of 5 zeroes
   ₄F                        # 1000 times do:
     D                       # duplicate the list
      ŽH|2ôI‹                # check if the input is smallerlarger than 44 and/or 59
             O·              # sum and double, yielding (0,2 or 4)
              ÝΩ             # pick a random number between and 0 and the number above
                ©è           # get the count in that level
                  >          # increment it
                   ®ǝ        # insert it at the same position
                      ]      # end loop
                       ε0Û   # remove leading zeroes on each level

05AB1E, 27 26 bytes

Saved a byte thanks to Adnan.

5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                          # initialize with a list of 5 zeroes
   ₄F                        # 1000 times do:
     D                       # duplicate the list
      ŽH|2ôI‹                # check if the input is smaller than 44 and 59
             O·              # sum and double, yielding (0,2 or 4)
              ÝΩ             # pick a random number between and 0 and the number above
                ©è           # get the count in that level
                  >          # increment it
                   ®ǝ        # insert it at the same position
                      ]      # end loop
                       ε0Û   # remove leading zeroes on each level

05AB1E, 27 26 bytes

Saved a byte thanks to Adnan.

5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                          # initialize with a list of 5 zeroes
   ₄F                        # 1000 times do:
     D                       # duplicate the list
      ŽH|2ôI‹                # check if the input is larger than 44 and/or 59
             O·              # sum and double, yielding (0,2 or 4)
              ÝΩ             # pick a random number between and 0 and the number above
                ©è           # get the count in that level
                  >          # increment it
                   ®ǝ        # insert it at the same position
                      ]      # end loop
                       ε0Û   # remove leading zeroes on each level
added 32 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

05AB1E, 2727 26 bytes

Saved a byte thanks to Adnan.

5Å0₄FD44 59‚I‹O·ÝΩ©è>®ǝ]ε0Û5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!Try it online!

Explanation

5Å0                           # initialize with a list of 5 zeroes
   ₄F                         # 1000 times do:
     D                        # duplicate the list
      44 59‚I‹ŽH|2ôI‹                # check if the input is smaller than 44 and 59
              O·              # sum and double, yielding (0,2 or 4)
               ÝΩ             # pick a random number between and 0 and the number above
                 ©è           # get the count in that level
                   >          # increment it
                    ®ǝ        # insert it at the same position
                       ]      # end loop
                        ε0Û   # remove leading zeroes on each level

05AB1E, 27 bytes

5Å0₄FD44 59‚I‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                           # initialize with a list of 5 zeroes
   ₄F                         # 1000 times do:
     D                        # duplicate the list
      44 59‚I‹                # check if the input is smaller than 44 and 59
              O·              # sum and double, yielding (0,2 or 4)
               ÝΩ             # pick a random number between and 0 and the number above
                 ©è           # get the count in that level
                   >          # increment it
                    ®ǝ        # insert it at the same position
                       ]      # end loop
                        ε0Û   # remove leading zeroes on each level

05AB1E, 27 26 bytes

Saved a byte thanks to Adnan.

5Å0₄FDŽH|2ôI‹O·ÝΩ©è>®ǝ]ε0Û

Try it online!

Explanation

5Å0                          # initialize with a list of 5 zeroes
   ₄F                        # 1000 times do:
     D                       # duplicate the list
      ŽH|2ôI‹                # check if the input is smaller than 44 and 59
             O·              # sum and double, yielding (0,2 or 4)
              ÝΩ             # pick a random number between and 0 and the number above
                ©è           # get the count in that level
                  >          # increment it
                   ®ǝ        # insert it at the same position
                      ]      # end loop
                       ε0Û   # remove leading zeroes on each level
added 751 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162
Loading
deleted 9 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162
Loading
deleted 107 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162
Loading
Post Undeleted by Emigna
added 126 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162
Loading
Post Deleted by Emigna
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162
Loading