Saving and re-using values from potmeter

Thank you for your quick reply.

I have looked into arrays but that causes a lot of new random values from the potmeter.

Is it possible to code it that it makes an array of a random sequence from 10 potmeter values?
Then extract the values from the array and write these to the outputs?