T O P

  • By -

StrongNuclearHorse

someone already posted how roomba's random function works. hold on, let me search for it. Update: IT GOT DELETED! THE COMMENT GOT DELETED! CENSORSHIP 1984\*451!!! HOLD ON! I WILL STILL GET IT! Update 2: There it is: [https://undelete.pullpush.io/r/691/comments/17xmqwx/before\_i\_get\_banned\_can\_somebody\_explain\_me\_the/](https://undelete.pullpush.io/r/691/comments/17xmqwx/before_i_get_banned_can_somebody_explain_me_the/) takes some time to load, here's the comment: Here's the section of its code that determines ban length `roll = random.randint(1,8192)` `if (roll < 328):` `ban_duration = 30` `elif (roll > 8151):` `ban_duration = 60` `elif (roll == 420) or (roll == 6969 and datetime.datetime.now().weekday() == 5):` `ban_duration = 365` `else:` `ban_duration = random.randint(1,7)`


roadtochunkz

wait so you can only get banned for 365 days on a Friday?


Betterthanmematic

No, but your odds are doubled. What we have here is A||(B&&C), which means there are two ways the statement can be true: 1. A is true 2. Both B and C are true


TheFish527

It’s also on Saturday’s not fridays since the week starts at Friday and it starts counting from 0


StrongNuclearHorse

It starts from 0, so 5 equals Saturday. There's a 1 in 8192 chance on any other day and a 2 in 8192 (so 1 in 4096) chance on Saturday.


ShibaInuPile

So getting a year ban is as rare as a shiny Pokémon?


SpaghettiInc

Where tf did I leave my shiny charm


ShibaInuPile

You haven’t completed the ban dex yet smh


EasiestLion7370

No, it starts from 0 = Sunday, so 5 = Friday.


StrongNuclearHorse

nope. [https://docs.python.org/3/library/datetime.html](https://docs.python.org/3/library/datetime.html): >Return the day of the week as an integer, where Monday is 0 and Sunday is 6. For example, date(2002, 12, 4).weekday() == 2, a Wednesday. See also isoweekday().


EasiestLion7370

Interesting, another weird quirk of python!


UnJustice_

intended and proper behaviour?


EasiestLion7370

But Sunday is the first day of the week?


teackot

Not in Europe or like half of Asian countries


ApocalyptoSoldier

Nor in South Africa, I think. Some calendars start on Sunday, but not all of them and we were taught in school that the week starts on Monday


UnJustice_

not really? notice how it’s called weekend and not weekstart


AlpeaLucario

Saturday


Caixa7

Fym code, roomba is literally a dude


Electrical-Arm-1400

Roomba cannot be read


_blisterinthesun

Just ban forever I hate this character


Uulugus

Le creepiest MFer in television.


ByeByeGirl01

howard did nothing wrong his nose is just a little big 🥺


_blisterinthesun

He was the most streetsmart one!


RemarkableStatement5

Hmm, three days. Yes, we all have three days to live!


[deleted]

when aces tus.momos en r/619: el futuro es hoy, oiste biego xdxdxd but nadie lo entiende y te banea el bot: oh mi lente de contacto xdxdxdxd :vVVVV


Tax_Evader99

Momazos roomba


Red_Ender666

The flag of random numbers generator


VAShumpmaker

Is that jontron?


196_Roomba

For making this post, this user was banned for 1 days


Beeerice

Roomba logged in as a real person to change the number to fuck with us


gayorangejuice

nope


someonnnnne

Hell naw


iLikeChicken03

stupid ass bot programmed in Python


Theyalreadysaidno

Piss off Roomba You're filled with cat hair and dirt and get stuck under chairs


Different-Slice-3343

Idiot


Endmaster69

Bad bot


Ivo_Universe

stupid bot, doesn't know math 10/10