machine learning – What’s the main purpose of random_state?

Hi so I know that if you don’t mention the random_state in the code, then whenever you execute your code a new random value is generated and the train and test datasets would have different values each time.

But what is exactly purpose of defining random_state? It make sense to predict our model accuracy on the same set of values all the time?