Live data from Hacker News

Social Roulette has a 1 in 6 chance of deleting your account

socialroulette.net

11–20 of 150 posts

Re: Social Roulette has a 1 in 6 chance of deleting your account

#11

Funny bit about this is that someone will give these people millions in funding or acquihire. All for a: from random import randint choice = randint(1, 6) delete = randint(1, 6) if choice == delete: print "Today is not your lucky day." else: print "Try again tomorrow." print "Today's choice was {0}.".format(choice) #I felt like writing some bad python.

There's a bug in your code, the chance of deleting is less than 1/6.

Re: Social Roulette has a 1 in 6 chance of deleting your account

#13
I once read that the chance of Russian Roulette is NOT 1:6 but more like 1:600, since you play with one bullet and the weight of the bullet makes it relatively unlikely that the bullet stops next to the top position in the barrel when you spin it.

Don't know if this is true but in the end, it doesn't matter for this stupid game.

Re: Social Roulette has a 1 in 6 chance of deleting your account

#14

Funny bit about this is that someone will give these people millions in funding or acquihire. All for a: from random import randint choice = randint(1, 6) delete = randint(1, 6) if choice == delete: print "Today is not your lucky day." else: print "Try again tomorrow." print "Today's choice was {0}.".format(choice) #I felt like writing some bad python.

There's a bug in your code, the chance of deleting is less than 1/6.

While the code could use streamlining by only drawing one randint and comparing it to a static number, the probability of orangethirty's way of doing it still gives the correct probability of 1/6. Think of it as two dice, the chance of rolling doubles is 6/36 = 1/6.

Re: Social Roulette has a 1 in 6 chance of deleting your account

#15
post #13

I once read that the chance of Russian Roulette is NOT 1:6 but more like 1:600, since you play with one bullet and the weight of the bullet makes it relatively unlikely that the bullet stops next to the top position in the barrel when you spin it. Don't know if this is true but in the end, it doesn't matter for this stupid game.

Depends on if you're re-spinning between turns. Otherwise the first guy might get a 1/600 chance, but everyone afterward has better (or worse?) than 1/6 odds.

Re: Social Roulette has a 1 in 6 chance of deleting your account

#16
post #13

I once read that the chance of Russian Roulette is NOT 1:6 but more like 1:600, since you play with one bullet and the weight of the bullet makes it relatively unlikely that the bullet stops next to the top position in the barrel when you spin it. Don't know if this is true but in the end, it doesn't matter for this stupid game.

I thought it was a theoretical game that no one actually plays.

Re: Social Roulette has a 1 in 6 chance of deleting your account

#18

Funny bit about this is that someone will give these people millions in funding or acquihire. All for a: from random import randint choice = randint(1, 6) delete = randint(1, 6) if choice == delete: print "Today is not your lucky day." else: print "Try again tomorrow." print "Today's choice was {0}.".format(choice) #I felt like writing some bad python.

FYI "choice" is the name of a function in the random module:

    from random import choice

    if choice(range(6)):
        print "Try again tomorrow."
    else:
        print "Today is not your lucky day."
Post reply on HN