Make rand_n map to a scaling op.