Kindly explain what is indeterminate sentence in simple words

An indeterminate sentence is when a judge does not specify a fixed period of time for a person's prison sentence. Instead, they provide a range of time, such as "5 to 10 years." The exact length of the sentence is determined by factors like the person's behavior while in prison and their potential for rehabilitation. This means that the person could be released earlier if they show good behavior and progress, or they may serve the maximum time if they do not show improvement. So, an indeterminate sentence allows for flexibility in deciding the release of a person from prison based on their behavior and rehabilitation progress.