KEY FOR SENTENCING:
What did legislature provide for?
As long as follow provisions as to min/max, etc., judge essentially immune from review and can consider just about anything (that is Constitutionally permissible.. ex. Prior arrest, nature of offense, character, etc.).
If judge talks, runs risk.
Only Constitutional requirement is cruel and unusual punishment and proportionality requirement (which is rarely not met).