Randomness increases at molecular level due to mixing of ideal materials. Therefore, the change in enthalpy should be positive ideal mixing of solution but no enthalpy change is present at the time of formation of ideal solution. Gibbs free energy of mixing must be negative, thus ideal solution becomes spontaneous.