rand/rand.c (rand_gate): Evolve r->ibits in a more sensible manner.