getValueInRange

fun getValueInRange(min: Int, max: Int, value: Int): Int