Fix missing randomize function from private tools