@type=(lex_sort(keys %left))[NchooseK(4,3)];which would put the keys in a fixed order before indices are randomly chosen
This would also work: