The law, especially Anglo-American law, gives as a rule wide latitude to the determination of the sentence that follows the conviction of a defendant. The law may set the minimum or maximum sentence for the particular crime, it may set the range, or it may allow different types of sentences (fine, prison, etc.); at the very least, it provides a choice between two alternatives, for instance, after conviction of a capital crime, it now allows in most states a finding of death or life in prison.
As a rule it is the judge who determines the sentence, but in capital cases, and in some states in other cases, it is the jury. In one state, California, it is the prison authority to whom the sentencing decision falls, the judge merely pronounces sentence in terms of the range set by the penal code. But wherever the discretionary power lies, discretion is almost unlimited. Very seldom will an appellate court impinge on this discretion and change the sentence.