That’s also what I would suggest since sliders can only increase by equal steps. If you know a little of javascript, you could have an array of desired values [1, 23, 84, 234, 123214] and use array indexes to match the values.
You slider should start at 0 (since the first element’s index in array is 0) and have it to increment by 1. The maximum value of the slider should be the number of element in your array minus 1 (again, since indexing starts at 0).