Law of independent assortment states that
when factors for two pairs of traits are present on the same chromosome of a hybrid, the segregation of one pair of traits is independent of the other pair of traits.
when two pairs of traits are combined in a hybrid, segregation of one pair of characters is independent of the other pair of characters.
segregation of a pair of traits of a character is dependent on the segregation of another pair of traits belonging to another character.
segregation of traits for one character is either dependent or independent of segregation of another pair of traits belonging to another character.
During gamete formation in a dihybrid for the formation of F2 offspring, segregation of a pair of unit factors assort independent of each other.