--[=[
	Returns jittered value at the average value, with the spread being
	random.

	@param average number
	@param spread number
	@param randomValue number?
	@return number
]=]

function Math.jitter(average: number, spread: number, randomValue)
	randomValue = randomValue or math.random()
	return average - 0.5*spread + randomValue*spread
end
