choose random table and all_before_repeat across blocks