the sortBy should happen first:

g => gs(g.sortBy('__rand__)).reducers(n)