Fixed comparator logic error for field randomization