Based on the R language, the article designs two universal random simulation functions for the law of large numbers, LLN-mean and LLN-graph, used to calculate related variables and draw simulation graphs. At the same time, the law of large numbers is applied to children’s education. At the same time, through correlation or correlation analysis, we can find the leading internal factors and highly correlated external factors of children’s educational activities. This provides technical support for educational decision-making, educational management, and educational research. The study results found that the law of large numbers has a good test effect on the influencing factors of children’s educational activities.