Re:Social Roulette has a 1 in 6 chance of deleting your account
by orangethirty on Saturday May 11, 2013 @12:29PM
(#5691114)
Funny bit about this is that someone will give these people millions in funding or acquihire. All for a:
[ Parent
| on HN ]
Re:Social Roulette has a 1 in 6 chance of deleting your account
by SandB0x on Saturday May 11, 2013 @01:11PM
(#5691263)
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."
Re:Social Roulette has a 1 in 6 chance of deleting your account
by orangethirty on Saturday May 11, 2013 @01:40PM
(#5691351)
No one liner? Im disappointed. Did you read the commnt at the end?
Re:Social Roulette has a 1 in 6 chance of deleting your account
by shill on Saturday May 11, 2013 @02:16PM
(#5691498)
alert(Math.floor(Math.random()*5)<1?"Boom!":"Click!");
Re:Social Roulette has a 1 in 6 chance of deleting your account
by relix on Sunday May 12, 2013 @10:44AM
(#5694425)
puts "Bam" if rand(6).zero?
Re:Social Roulette has a 1 in 6 chance of deleting your account
by sublimit on Saturday May 11, 2013 @02:30PM
(#5691550)
print ("Click", "Bam!")[input()%6==4]
Tee hee.
Re:Social Roulette has a 1 in 6 chance of deleting your account
by m4design on Saturday May 11, 2013 @12:49PM
(#5691183)
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
by olympus on Saturday May 11, 2013 @12:55PM
(#5691207)
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
by andrewchoi on Saturday May 11, 2013 @03:03PM
(#5691708)
I think the point of the post you're responding to is that the code doesn't actually delete anything.
Re:Social Roulette has a 1 in 6 chance of deleting your account
by orangethirty on Saturday May 11, 2013 @03:45PM
(#5691867)
How could it delete what is not there? Or did you really expect me to write python script with fb graph integration?
Re:Social Roulette has a 1 in 6 chance of deleting your account
by hawkharris on Saturday May 11, 2013 @01:49PM
(#5691375)
I know what you mean. In a sense the backend code is probably pretty simple. But that just goes to show how important the implementation / design really is. I just survived the game, and I thought the spinning revolver wheel is what made the experience.
Re:Social Roulette has a 1 in 6 chance of deleting your account
by orangethirty on Saturday May 11, 2013 @02:33PM
(#5691565)
My point is that the code really doesnt matter in many "startups". Just the fact that someone will buy.
Re:Social Roulette has a 1 in 6 chance of deleting your account
by hawkharris on Saturday May 11, 2013 @03:51PM
(#5691882)
As a programmer I think that well-written code can be beautiful. A pithy, innovative Python script should be worth more than, say, a script that powers a run-of-the-mill to-do list app.
At the same time, I think it's understandable that users and investors don't evaluate startups the way I do, using a programmer's mindset. They're more interested in how well the overall idea has been executed from design, marketing and user experience standpoints.