Dispersion parameters for number of piglets born alive (NBA) were estimated using a random regression model (RRM). Two data sets of litter records from the Nemscak farm in Slovenia were used for analyses. The first dataset (DS1) included records from the first to the sixth parity. The second dataset (DS2) was extended to the tenth parity. Four sow genotypes were included: Swedish Landrace (SL), Large White (LW) and their crossbred lines. The fixed part of the model included sow genotype, mating season (as month-year interaction), parity and weaning to conception interval as class effects. The age at farrowing was modelled as a quadratic regression, nested within parity. The previous lactation length was fitted as a linear regression. Random regressions for parity on Legendre polynomials were included for direct additive genetic, permanent environmental and common litter environmental effects. Orthogonal Legendre polynomials from the linear to the cubic power were fitted. Estimates of heritability ranged from 0.09 to 0.14. The ratio of permanent environmental variance to total variance increased along the trajectory from 0.05 to 0.16. Magnitudes of common litter effect were generally small (0.01 to 0.02). The eigenvalues of covariance functions showed that between 10 and 15% of genetic variability was explained by the individual genetic curve of sows in the DS2. This proportion was mainly covered by linear and quadratic coefficients. Results suggest that RRM could be used for genetic analysis of litter size.