runtime: make select fairer
runtime: make select fairer

The o+i*p approach to visiting select cases in random
order stops being fair when there is some case that
is never ready.  If that happens, then the case that follows
it in the order gets more chances than the others.

In general the only way to ensure fairness is to make
all permutations equally likely.  I've done that by computing
one explicitly.

Makes the permutations correct for n >= 4 where
previously they were broken.  For n > 12, there's not
enough randomness to do a perfect job but this should
still be much better than before.

Fixes issue 1425.

R=r, ken2, ejsherry
CC=golang-dev
http://codereview.appspot.com/4037043

ssrl/go,dsriram/golang,apparentlymart/golang,gnanderson/go,dsriram/golang,dsriram/golang,tv42/old-go,pombredanne/go-deleteme,apparentlymart/golang,tv42/old-go,ssrl/go,gnanderson/go,ssrl/go,ssrl/go,gnanderson/go,tv42/old-go,gnanderson/go,tv42/old-go,apparentlymart/golang,tv42/old-go,tv42/old-go,dsriram/golang,apparentlymart/golang,tv42/old-go,ssrl/go,apparentlymart/golang,apparentlymart/golang,pombredanne/go-deleteme,gnanderson/go,pombredanne/go-deleteme,pombredanne/go-deleteme,ssrl/go,dsriram/golang,pombredanne/go-deleteme,pombredanne/go-deleteme,ssrl/go,gnanderson/go,apparentlymart/golang,dsriram/golang,gnanderson/go,pombredanne/go-deleteme,dsriram/golang