News for hackers. Stuff that matters.
Re:Has Anyone Ever Flipped Heads 76 Times in a Row? by simonsarris on Wednesday January 29, 2014 @11:15AM (#7144718)
It's much too fun not to try it ourselves: http://jsfiddle.net/simonsarris/as2Zu/

So far I've "only" gotten 16 heads in a row after a few thousand flips

Re:Has Anyone Ever Flipped Heads 76 Times in a Row? by fphilipe on Wednesday January 29, 2014 @11:48AM (#7144999)
Try this in Julia for some extra speed:

    best = 0
    i = 0
    while true
        i += 1
        count = 0
        face = 1
        while face == 1
            face = rand(0:1)
            count += face
        end
        if count > best
            best = count
            println("new record: $best in iteration $i")
        end
    end
Re:Has Anyone Ever Flipped Heads 76 Times in a Row? by deletes on Wednesday January 29, 2014 @12:34PM (#7145363)
I wrote a short c program and ran it on 4 cores. Current best result is 36.
Re:Has Anyone Ever Flipped Heads 76 Times in a Row? by azth on Wednesday January 29, 2014 @05:19PM (#7147499)
pthreads?
Re:Has Anyone Ever Flipped Heads 76 Times in a Row? by deletes on Thursday January 30, 2014 @03:05AM (#7149542)
threads.h, a C11 feature, almost no compilers support it unfortunately.