random operaton fix