So I need to be able to scramble numbers around but have the outcome always be consistent. Meaning, if I scrambled 1234 and it gave me something like 2143, if I ran the scramble function again it would result in 2143 again.
Is anyone aware of a way to do this?
One simple solution would be to treat numbers as character arrays and shuffle them using a seedable random generator, e.g. an LCG, using the number itself as a seed.
References: