Numerical study on the quantitative error of the Korteweg–de Vries equation for modelling random waves on large scale in shallow water