#34979·scikit-learn

Clarify the random_state description in train_test_split documentation

Author: mhmd-81Created Sep 17, 2026Updated Sep 17, 2026
LabelsDocumentationNeeds Triage

[!WARNING] This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.

Introduce yourself

No response

Describe the issue linked to the documentation

The random_state parameter in train_test_split could use a slightly clearer explanation for beginners.

It would be helpful to explicitly mention that using the same integer value produces the same split across repeated calls, assuming the same input data and parameters.

Suggest a potential alternative/fix

Add a short sentence to the random_state parameter documentation explaining that a fixed integer makes the split reproducible.

Source: scikit-learn/scikit-learn