added a max_value variable that increases the span of available numbers to increase variation